Changeset 5095 in josm for trunk/src/org
- Timestamp:
- 2012-03-17T21:45:59+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/remotecontrol/handler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
r5085 r5095 9 9 import java.net.URLDecoder; 10 10 import java.util.HashSet; 11 import java.util.Map; 11 12 import java.util.concurrent.Future; 12 13 … … 181 182 } 182 183 183 /* 184 * parse addtags parameters 185 * Example URL (part): 186 * addtags=wikipedia:de%3DResidenzschloss Dresden|name:en%3DDresden Castle 187 */ 184 addTags(args); 185 186 } 187 188 /* 189 * parse addtags parameters Example URL (part): 190 * addtags=wikipedia:de%3DResidenzschloss Dresden|name:en%3DDresden Castle 191 */ 192 static void addTags(final Map<String, String> args) { 188 193 if (args.containsKey("addtags")) { 189 194 Main.worker.execute(new Runnable() { 195 190 196 public void run() { 191 197 String[] tags = null; … … 196 202 } 197 203 String[][] keyValue = new String[tags.length][2]; 198 for (int i = 0; i <tags.length; i++) {204 for (int i = 0; i < tags.length; i++) { 199 205 keyValue[i] = tags[i].split("="); 200 206 … … 207 213 }); 208 214 } 209 210 215 } 211 216 -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadObjectHandler.java
r5085 r5095 36 36 boolean relationMembers = Boolean.parseBoolean(args.get("relation_members")); 37 37 DownloadPrimitiveAction.processItems(newLayer, ps, true, relationMembers); 38 LoadAndZoomHandler.addTags(args); 38 39 } 39 40
Note:
See TracChangeset
for help on using the changeset viewer.