From b0193ac2e1c54379f7a366b6d4f0cb0ac08e7e6f Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Wed, 20 May 2020 10:55:11 -0600 Subject: [PATCH] Add default replacement tags for servers Signed-off-by: Taylor Smock --- .../data/mapwithai/MapWithAIInfo.java | 44 +++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/mapwithai/MapWithAIInfo.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/mapwithai/MapWithAIInfo.java index 8cfe471..19103fa 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/mapwithai/MapWithAIInfo.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/mapwithai/MapWithAIInfo.java @@ -167,6 +167,7 @@ public class MapWithAIInfo extends TileSourceInfo implements Comparable replacementTags; /** * when adding a field, also adapt the: {@link #MapWithAIPreferenceEntry @@ -223,6 +224,8 @@ public class MapWithAIInfo extends TileSourceInfo implements Comparable replacementTags; /** * Constructs a new empty {@MapWithAIPreferenceEntry} @@ -258,6 +261,9 @@ public class MapWithAIInfo extends TileSourceInfo implements Comparable replacementTags) { + this.replacementTags = replacementTags; + } + + /** + * @return The required replacement tags (run first) + */ + public Map getReplacementTags() { + return replacementTags; + } + }