Changes between Version 9 and Version 25 of Help/RemoteControlCommands


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Help/RemoteControlCommands

    v9 v25  
    44
    55== List of Commands ==
    6 
    76A complete list of commands and mandatory/optional parameters is shown at http://127.0.0.1:8111/ (when JOSM is running).
    87
    9 === {{{load_and_zoom}}} ===
     8=== {{{load_and_zoom}}} ===#load_and_zoom
    109Instructs JOSM to download a bounding box from the API, zoom to the downloaded area and optionally select one or more objects.
    1110{{{
     
    1312}}}
    1413where
    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 || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer ||
    22 || `layer_locked` || O || Only valid when the data is loaded in a new layer; If '''true''', new layer is [[Action/LockedLayer|locked]] ||
    23 || `download_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' , download is [[Help/Action/BlockDownload|blocked]] ||
    24 || `upload_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' or '''false''', upload is [[Help/Action/EncourageDiscourageUpload|blocked or discouraged]] ||
    25 || `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]. ||
    26 || `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. ||
    27 || `zoom_mode` || O || '''download''' | '''selection''', defaults to selection ||
    28 || `changeset_comment` || O || Comment of the changeset ||
    29 || `changeset_source` || O || Source of the changeset ||
    30 || `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] ||
    3132
    3233==== Example ====
    33 
    3434Start JOSM (don't forget to enable the !RemoteControl feature), then click on:
    3535
     
    3737
    3838JOSM should now load an area in the German Schwarzwald and have the specified node selected.
     39
    3940
    4041=== {{{zoom}}} ===
     
    4647
    4748**Hint**: This command can also be used to select objects only. Just enter a small arbitrary area to the left..bottom entries and add the object list to the select= option.
     49
    4850=== {{{import}}} ===
    4951Instructs JOSM to download the specified OSM file and add it to the current data set.
     
    5254}}}
    5355where
    54 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    55 || `url` || R || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters. ||
    56 || `new_layer` || O || If '''true''', downloads to a new layer ||
    57 || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer ||
    58 || `layer_locked` || O || Only valid when the data is loaded in a new layer; If '''true''', new layer is [[Action/LockedLayer|locked]] ||
    59 || `download_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' , download is [[Help/Action/BlockDownload|blocked]] ||
    60 || `upload_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' or '''false''', upload is [[Help/Action/EncourageDiscourageUpload|blocked or discouraged]] ||
     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. ||
    6164
    6265=== {{{load_data}}} ===
    63 (since version 1.6)
     66''(since version 1.6)''
     67
    6468Instruct JOSM to load OSM data, directly encoded in the URL, instead of coming from an external file. This is only suited for smaller data (some browsers limit the maximum URL length), but it is faster (since no download is required), and in many cases where dynamically generated data is needed, it's easier to generate.
    6569
     
    6872}}}
    6973where
    70 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    71 || `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. ||
    72 || `new_layer` || O || Chose to load the data in a new layer ||
    73 || `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 ||
    74 || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer ||
    75 || `layer_locked` || O || Only valid when the data is loaded in a new layer; If '''true''', new layer is [[Action/LockedLayer|locked]] ||
    76 || `download_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' , download is [[Help/Action/BlockDownload|blocked]] ||
    77 || `upload_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' or '''false''', upload is [[Help/Action/EncourageDiscourageUpload|blocked or discouraged]] ||
     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] ||
    7882
    7983=== {{{open_file }}} ===
     
    8488}}}
    8589where
    86 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    87 || `filename` || R || The local file to open in JOSM (Ie: /tmp/test.osm) ||
    88 
    89 
    90 === {{{imagery}}} ===
     90||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =||
     91|| `filename` ||  R || The local file to open in JOSM (Ie: /tmp/test.osm) ||
     92
     93
     94=== {{{imagery}}} ===#imagery
    9195Instructs JOSM to add an imagery (WMS/TMS) layer.
    9296{{{
     
    9498}}}
    9599where
    96 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    97 || `url` || R || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters.  ||
    98 || `title` || O || The display name of the layer ||
    99 || `type` || O || Type of the layer. Possible values are `wms`, `tms` and `bing` [[BR]] (since !RemoteControl Version 1.3) ||
    100 || `cookies` || O ||  ||
    101 || `min_zoom` || O || The minimum zoom level [[BR]] (since !RemoteControl Version 1.4) ||
    102 || `max_zoom` || O || The maximum zoom level. For higher scales, the images of the maximum level is enlarged [[BR]] (since !RemoteControl Version 1.4) ||
    103 
    104 
    105 mandatory parameters: url
    106 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)'' ||
    107140
    108141==== Examples ====
    109 * TMS layer "osm" {{{http://tile.openstreetmap.org/{zoom}/{x}/{y}.png}}}
    110 
    111 [http://localhost:8111/imagery?title=osm&type=tms&url=http://tile.openstreetmap.org/%7Bzoom%7D/%7Bx%7D/%7By%7D.png]
     142* TMS layer "osm" {{{https://tile.openstreetmap.org/{zoom}/{x}/{y}.png}}}
     143
     144http://localhost:8111/imagery?title=osm&type=tms&min_zoom=1&max_zoom=20&url=https://tile.openstreetmap.org/%7Bzoom%7D/%7Bx%7D/%7By%7D.png
    112145
    113146* WMS layer "landsat" {{{http://irs.gis-lab.info/?layers=landsat&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox} }}}
    114 [http://localhost:8111/imagery?title=landsat&type=wms&url=http://irs.gis-lab.info/?layers=landsat&SRS=%7Bproj%7D&WIDTH=%7Bwidth%7D&HEIGHT=%7Bheight%7D&BBOX=%7Bbbox%7D]
     147http://localhost:8111/imagery?title=landsat&type=wms&url=http://irs.gis-lab.info/?layers=landsat&SRS=%7Bproj%7D&WIDTH=%7Bwidth%7D&HEIGHT=%7Bheight%7D&BBOX=%7Bbbox%7D
     148
     149* "Bing" layer
     150
     151http://localhost:8111/imagery?id=Bing
     152
    115153
    116154=== {{{load_object}}} ===
    117 
    118155Instructs JOSM to download objects with a given id.
    119156{{{
     
    121158}}}
    122159where
    123 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    124 || `objects` || R || Comma separated list of object ids, e.g. "{{{n1234,n1235,w84,r958493}}}" ||
    125 || `new_layer` || O || If '''true''', downloads to a new layer ||
    126 || `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]. ||
    127 || `relation_members` || O || If '''true''', downloads objects members of the relations as well. ||
    128 || `referrers` || O || If '''true''', downloads referrers of the object as well. I.e. parent relations, and for nodes, additionally, parent ways. (since r6782) ||
    129 || `layer_name` || O || Only valid when the data is loaded in a new layer; Gives JOSM a hint on how to name the layer ||
    130 || `layer_locked` || O || Only valid when the data is loaded in a new layer; If '''true''', new layer is [[Action/LockedLayer|locked]] ||
    131 || `download_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' , download is [[Help/Action/BlockDownload|blocked]] ||
    132 || `upload_policy` || O || Only valid when the data is loaded in a new layer; If '''never''' or '''false''', upload is [[Help/Action/EncourageDiscourageUpload|blocked or discouraged]] ||
     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] ||
    133170
    134171==== Example ====
    135 
    136172[http://localhost:8111/load_object?new_layer=true&objects=w106159509]
    137173
     174
    138175=== {{{add_node}}} ===
    139 
    140176Instructs JOSM to create a new node at the given coordinates.
    141177
     
    146182}}}
    147183where
    148 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    149 || `lon` || R || The longitude of the node ||
    150 || `lat` || R || The latitude of the node ||
    151 || `addtags` since v1.5|| 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]. ||
     184||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =||
     185|| `lon` ||  R || The longitude of the node ||
     186|| `lat` ||  R || The latitude of the node ||
     187|| `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]. ''(since v1.5)'' ||
    152188
    153189==== Example ====
    154190http://localhost:8111/add_node?lon=13.3&lat=53.2
    155191
     192
    156193=== {{{add_way}}} ===
    157 
    158194Instructs JOSM to create a new way with new way nodes at given coordinates.
    159195
     
    164200}}}
    165201where
    166 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    167 || `way` || R || Pairs of latitude, longitude coordinates separated by semicolon. ||
    168 || `addtags` since v1.5|| 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]. ||
     202||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =||
     203|| `way` ||  R || Pairs of latitude, longitude coordinates separated by semicolon. ||
     204|| `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]. ''(since v1.5)'' ||
    169205
    170206==== Example ====
    171 
    172207http://localhost:8111/add_way?way=53.2,13.3;53.3,13.3;53.3,13.2
    173208
     
    175210=== {{{version}}} ===
    176211This command returns the current protocol version of the installed !RemoteControl interface. Developers can use it to query for a running instance of JOSM and also determine whether the requested functionality is available in the client.
     212
    177213{{{
    178214GET /version[?jsonp=callback]
    179215}}}
    180216where
    181 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    182 || `jsonp` || O|| Jsonp callback for older browsers not implementing ​Cross-Origin Resource Sharing (CORS) ||
     217||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =||
     218|| `jsonp` ||  O  || Jsonp callback for older browsers not implementing ​Cross-Origin Resource Sharing (CORS) ||
    183219
    184220The command returns a json object containing an application identifier that is always "JOSM !RemoteControl", a major number and a minor number. Compatible protocol changes result in an increase of the minor number. Incompatible changes increase the major number. So a client application knowing of protocol version 1.0 can still talk to JOSM having 1.1. But it's not guaranteed to be working with 2.0. So the client should verify the major number.
     
    192228      "minor": 0
    193229   },
    194    "application": "JOSM RemoteControl"
     230   "application": "JOSM RemoteControl",
     231   "version": 16587 // JOSM version (since r16587)
    195232}
    196233}}}
     
    254291}}}
    255292
     293=== {{{openapi.json}}} ===
     294JOSM RemoteControl as [https://swagger.io/specification/ OpenAPI Specification]
     295
     296* http://localhost:8111/openapi.json
     297* https://petstore.swagger.io/?url=http://localhost:8111/openapi.json
     298
    256299
    257300=== Adding, changing or deleting tags === #addtags
     
    273316Remotecontrol allows other plugins to add additional commands. The other registers a RequestHandler class and specifies a command to be handled by this class. The command syntax has to be defined by the other plugin.
    274317
    275 Reverter plugin since version 27091 makes use of this feature.
    276 
     318==== Reverter ====
     319Reverter 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 ====
     322See [https://github.com/JOSM/Mapillary/blob/master/src/main/java/org/openstreetmap/josm/plugins/mapillary/io/remotecontrol/MapillaryRemoteControl.java MapillaryRemoteControl.java].
     323Either `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. ||
    277339----
    278 
    279 Back to [[Help/Preferences/RemoteControl]][[br]]
    280 Back to [[Help/Preferences]][[br]]
    281 Back to [[Help]]
     340Back to [wikitr:/Help/Preferences/RemoteControl Remote control preferences] \\
     341Back to [wikitr:/Help/Preferences Preferences] \\
     342Back to [wikitr:/Help Main Help]