15 | | ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =|| |
16 | | || `bottom` || R || Minimum latitude || |
17 | | || `top` || R || Maximum latitude || |
18 | | || `left` || R || Minimum longitude || |
19 | | || `right` || R || Maximum longitude || |
20 | | || `new_layer` || O || If '''true''', downloads to a new layer || |
21 | | || `addtags` || O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. || |
22 | | || `select` || O || Comma-separated list of objects that should be selected. Object specifiers are combinations of the words "way", "node", or "relation", and the numerical object id. Example: {{{select=way38473,node12399,node54646}}} || |
23 | | || `zoom_mode` || O || '''download''' | '''selection''', defaults to selection || |
24 | | || `changeset_comment` || O || Comment of the changeset || |
25 | | || `changeset_source` || O || Source of the changeset || |
26 | | || `search` || O || Search objects in the current data layer. See [wiki:/Help/Action/Search Search] || |
| 14 | ||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =|| |
| 15 | || `bottom` || R || Minimum latitude || |
| 16 | || `top` || R || Maximum latitude || |
| 17 | || `left` || R || Minimum longitude || |
| 18 | || `right` || R || Maximum longitude || |
| 19 | || `new_layer` || O || If '''true''', downloads to a new layer. (Overwrites user preference, see #19308) || |
| 20 | || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer || |
| 21 | || `layer_locked` || O || Only valid when the data is loaded in a new layer; If '''true''', new layer is [wikitr:/Help/Action/LockedLayer locked] || |
| 22 | || `download_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' , download is [wikitr:/Help/Action/BlockDownload blocked] || |
| 23 | || `upload_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' or '''false''', upload is [wikitr:/Help/Action/EncourageDiscourageUpload blocked or discouraged] || |
| 24 | || `addtags` || O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. || |
| 25 | || `select` || O || Comma-separated list of objects that should be selected. Object specifiers are combinations of the words "way", "node", or "relation", and the numerical object id. Example: {{{select=way38473,node12399,node54646}}}. Since r13212 the special value **currentselection** let JOSM keep its previous selection. || |
| 26 | || `zoom_mode` || O || '''download''' | '''selection''', defaults to selection || |
| 27 | || `changeset_comment` || O || Comment of the changeset || |
| 28 | || `changeset_source` || O || Source of the changeset || |
| 29 | || `changeset_hashtags` || O || Hashtags of the changeset ''(since r13109)'' || |
| 30 | || `changeset_tags` || O || Optional parameter to add changeset tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". This command uses the same syntax as the [#addtags addtags] parameter. `changeset_comment` and `changeset_source` currently override the `comment` and `source` tags passed in this parameter, but this may change in the future. ''(since r15316)'' || |
| 31 | || `search` || O || Search objects in the current data layer. See [wikitr:/Help/Action/Search Search] || |
50 | | ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =|| |
51 | | || `url` || R || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters. || |
52 | | || `new_layer` || O || If '''true''', downloads to a new layer || |
| 56 | ||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =|| |
| 57 | || `url` || R || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters. || |
| 58 | || `new_layer` || O || If '''true''', downloads to a new layer. (Overwrites user preference, see #19308) || |
| 59 | || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer || |
| 60 | || `layer_locked` || O || Only valid when the data is loaded in a new layer; If '''true''', new layer is [wikitr:/Help/Action/LockedLayer locked] || |
| 61 | || `download_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' , download is [wikitr:/Help/Action/BlockDownload blocked] || |
| 62 | || `upload_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' or '''false''', upload is [wikitr:/Help/Action/EncourageDiscourageUpload blocked or discouraged] || |
| 63 | || `changeset_tags` || O || Optional parameter to add changeset tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". This command uses the same syntax as the [#addtags addtags] parameter. First available in r16324. || |
62 | | ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =|| |
63 | | || `data` || R || The XML data to load, this should be URL encoded in a way that also encodes the special characters &, = and ? to resp. %26, %3D and %3F. The JS [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent encodeUriComponent()] method provides this functionality out of the box. || |
64 | | || `new_layer` || O || Chose to load the data in a new layer || |
65 | | || `mime_type` || O || Mime type of the data, by default this is "application/x-osm+xml", which is currently the only supported mime type, but in the future other mime types could be supported || |
66 | | || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer || |
| 74 | ||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =|| |
| 75 | || `data` || R || The XML data to load, this should be URL encoded in a way that also encodes the special characters &, = and ? to resp. %26, %3D and %3F. The JS [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent encodeUriComponent()] method provides this functionality out of the box. || |
| 76 | || `new_layer` || O || Choose to load the data in a new layer. (Overwrites user preference, see #19308) || |
| 77 | || `mime_type` || O || Mime type of the data, by default this is "application/x-osm+xml", which is currently the only supported mime type, but in the future other mime types could be supported || |
| 78 | || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer || |
| 79 | || `layer_locked` || O || Only valid when the data is loaded in a new layer; If '''true''', new layer is [wikitr:/Help/Action/LockedLayer locked] || |
| 80 | || `download_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' , download is [wikitr:/Help/Action/BlockDownload blocked] || |
| 81 | || `upload_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' or '''false''', upload is [wikitr:/Help/Action/EncourageDiscourageUpload blocked or discouraged] || |
85 | | ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =|| |
86 | | || `url` || R || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters. || |
87 | | || `title` || O || The display name of the layer || |
88 | | || `type` || O || Type of the layer. Possible values are `wms`, `tms` and `bing` [[BR]] (since !RemoteControl Version 1.3) || |
89 | | || `cookies` || O || || |
90 | | || `min_zoom` || O || The minimum zoom level [[BR]] (since !RemoteControl Version 1.4) || |
91 | | || `max_zoom` || O || The maximum zoom level. For higher scales, the images of the maximum level is enlarged [[BR]] (since !RemoteControl Version 1.4) || |
92 | | |
93 | | |
94 | | mandatory parameters: url |
95 | | optional parameters: title, type, cookies, min_zoom, max_zoom |
| 100 | ||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =|| |
| 101 | || `url` || R or `id` || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters. || |
| 102 | || `id` || R or `url` || The imagery ID in JOSM, see [[Maps]] (since r17655). || |
| 103 | || `title` || O || The display name of the layer || |
| 104 | || `type` || O || Type of the layer. Possible values are `wms`, `tms` and `bing` ''(defaults to `wms`, since !RemoteControl Version 1.3)'' || |
| 105 | || `cookies` || O || || |
| 106 | || `min_zoom` || O || The minimum zoom level ''(since !RemoteControl Version 1.4)'' || |
| 107 | || `max_zoom` || O || The maximum zoom level. For higher scales, the images of the maximum level is enlarged ''(since !RemoteControl Version 1.4)'' || |
| 108 | || `name` || O || alias for `title` ''(since !RemoteControl Version 1.10)'' || |
| 109 | || `attribution-text` || O || ''(since !RemoteControl Version 1.10)'' || |
| 110 | || `attribution-url` || O || ''(since !RemoteControl Version 1.10)'' || |
| 111 | || `bestMarked` || O || ''(since !RemoteControl Version 1.10)'' || |
| 112 | || `bounds` || O || ''(since !RemoteControl Version 1.10)'' || |
| 113 | || `category` || O || ''(since !RemoteControl Version 1.10)'' || |
| 114 | || `country-code` || O || ''(since !RemoteControl Version 1.10)'' || |
| 115 | || `customHttpHeaders` || O || ''(since !RemoteControl Version 1.10)'' || |
| 116 | || `date` || O || ''(since !RemoteControl Version 1.10)'' || |
| 117 | || `default-layers` || O || ''(since !RemoteControl Version 1.10)'' || |
| 118 | || `description` || O || ''(since !RemoteControl Version 1.10)'' || |
| 119 | || `eula` || O || ''(since !RemoteControl Version 1.10)'' || |
| 120 | || `icon` || O || ''(since !RemoteControl Version 1.10)'' || |
| 121 | || `id` || O || ''(since !RemoteControl Version 1.10)'' || |
| 122 | || `logo-image` || O || ''(since !RemoteControl Version 1.10)'' || |
| 123 | || `logo-url` || O || ''(since !RemoteControl Version 1.10)'' || |
| 124 | || `metadataHeaders` || O || ''(since !RemoteControl Version 1.10)'' || |
| 125 | || `minimumTileExpire` || O || ''(since !RemoteControl Version 1.10)'' || |
| 126 | || `modTileFeatures` || O || ''(since !RemoteControl Version 1.10)'' || |
| 127 | || `noTileChecksums` || O || ''(since !RemoteControl Version 1.10)'' || |
| 128 | || `noTileHeaders` || O || ''(since !RemoteControl Version 1.10)'' || |
| 129 | || `overlay` || O || ''(since !RemoteControl Version 1.10)'' || |
| 130 | || `permission-reference-url` || O || ''(since !RemoteControl Version 1.10)'' || |
| 131 | || `pixel-per-eastnorth` || O || ''(since !RemoteControl Version 1.10)'' || |
| 132 | || `projections` || O || ''(since !RemoteControl Version 1.10)'' || |
| 133 | || `shapes` || O || ''(since !RemoteControl Version 1.10)'' || |
| 134 | || `terms-of-use-text` || O || ''(since !RemoteControl Version 1.10)'' || |
| 135 | || `terms-of-use-url` || O || ''(since !RemoteControl Version 1.10)'' || |
| 136 | || `tileSize` || O || ''(since !RemoteControl Version 1.10)'' || |
| 137 | || `transparent` || O || ''(since !RemoteControl Version 1.10)'' || |
| 138 | || `type` || O || ''(since !RemoteControl Version 1.10)'' || |
| 139 | || `valid-georeference` || O || ''(since !RemoteControl Version 1.10)'' || |
112 | | ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =|| |
113 | | || `objects` || R || Comma separated list of object ids, e.g. "{{{n1234,n1235,w84,r958493}}}" || |
114 | | || `new_layer` || O || If '''true''', downloads to a new layer || |
115 | | || `addtags` || O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. || |
116 | | || `relation_members` || O || If '''true''', downloads objects members of the relations as well. || |
117 | | || `referrers` || O || If '''true''', downloads referrers of the object as well. I.e. parent relations, and for nodes, additionally, parent ways. (since r6782) || |
| 160 | ||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =|| |
| 161 | || `objects` || R || Comma separated list of object ids, e.g. "{{{n1234,n1235,w84,r958493}}}" || |
| 162 | || `new_layer` || O || If '''true''', downloads to a new layer. (Overwrites user preference, see #19308) || |
| 163 | || `addtags` || O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. || |
| 164 | || `relation_members` || O || If '''true''', downloads objects members of the relations as well. || |
| 165 | || `referrers` || O || If '''true''', downloads referrers of the object as well. I.e. parent relations, and for nodes, additionally, parent ways. ''(since r6782)'' || |
| 166 | || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer || |
| 167 | || `layer_locked` || O || Only valid when the data is loaded in a new layer; If '''true''', new layer is [wikitr:/Help/Action/LockedLayer locked] || |
| 168 | || `download_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' , download is [wikitr:/Help/Action/BlockDownload blocked] || |
| 169 | || `upload_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' or '''false''', upload is [wikitr:/Help/Action/EncourageDiscourageUpload blocked or discouraged] || |
260 | | Reverter plugin since version 27091 makes use of this feature. |
261 | | |
| 318 | ==== Reverter ==== |
| 319 | Reverter plugin since version 27091 makes use of this feature. See [source:osm/applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetHandler.java RevertChangesetHandler.java]. |
| 320 | |
| 321 | ==== Mapillary ==== |
| 322 | See [https://github.com/JOSM/Mapillary/blob/master/src/main/java/org/openstreetmap/josm/plugins/mapillary/io/remotecontrol/MapillaryRemoteControl.java MapillaryRemoteControl.java]. |
| 323 | Either `sequence` or `photo` must be specified, but not both. Since the remote control class was written for multiple imagery sources, the id for either `sequence` or `photo` ''must'' be prefixed with `Mapillary/`. |
| 324 | |
| 325 | ==== Compilation of plugin remote control commands ==== |
| 326 | ||= Plugin =||= **Command** =||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =|| |
| 327 | || Reverter || `revert_changeset` || || || Base command to revert a changeset || |
| 328 | || || || `id` || R || The changeset id to use (should match regex `[0-9]+`) || |
| 329 | || MapWithAI || `mapwithai` || || || Base command to download MapWithAI data || |
| 330 | || || || `max_obj` || O || Set the maximum number of objects the user can add per action from the MapWithAI layer. Should match regex `[0-9]+`. || |
| 331 | || || || `switch_layer` || O || Use if you want to force users to automatically switch layers when they add data to OSM. Takes `true`/`false`. || |
| 332 | || || || `bbox` || O || The bbox to download (`lat,lon,lat,lon` -- assumes the bbox will not cross meridian) || |
| 333 | || || || `crop_bbox` || O || Crop downloaded MapWithAI data (roads only) to this bbox. Tasking managers may also generate a well-known layer. || |
| 334 | || || || `url` || O || The URL to use instead of the built-in data sources. Useful for imports (please make certain you went through the import process). || |
| 335 | || || || `source` || O || The source to use when uploading to OSM (changeset source) || |
| 336 | || Mapillary || `photo` || || || Base command to download a Mapillary photo (may be extended to other imagery sources in the future) || |
| 337 | || || || `photo` || R/O || The id of the image to show and download. Either this or `sequence` must be specified. || |
| 338 | || || || `sequence` || R/O || The id of the sequence to show and download. First image is shown in image viewer. || |