Changes between Version 23 and Version 29 of Help/RemoteControlCommands


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

Legend:

Unmodified
Added
Removed
Modified
  • Help/RemoteControlCommands

    v23 v29  
    9999where
    100100||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =||
    101 || `url` ||  R  || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters.  ||
     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).  ||
    102103|| `title` ||  O  || The display name of the layer ||
    103104|| `type` ||  O  || Type of the layer. Possible values are `wms`, `tms` and `bing` ''(defaults to `wms`, since !RemoteControl Version 1.3)'' ||
     
    146147http://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
    147148
     149* "Bing" layer
     150
     151http://localhost:8111/imagery?id=Bing
     152
    148153
    149154=== {{{load_object}}} ===
     
    224229   },
    225230   "application": "JOSM RemoteControl",
    226    "version": 16587 // JOSM version (since r16587)
     231   "version": 16587, // JOSM version (since r16587)
     232   "osm_server": "default" // indicates that the user is using the OSM server by "default" or "custom" (since r19416)
    227233}
    228234}}}
     
    308314[http://localhost:8111/load_and_zoom?addtags=wikipedia%3Ade=%7Cmaxspeed=&select=way23071688,way23076176,way23076177,&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325].
    309315
     316=== {{{export}}} ===
     317''(since JOSM r19425)''
     318
     319Returns the content of the active layer in the `.osm` format
     320{{{
     321GET /export
     322}}}
     323
     324If there is no active layer, or it is in the process of uploading changes, an empty response will be returned.
     325
     326
    310327=== Other commands ===
    311328Remotecontrol 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.
    312329
    313 Reverter plugin since version 27091 makes use of this feature.
    314 
     330==== Reverter ====
     331Reverter plugin since version 27091 makes use of this feature. See [source:osm/applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetHandler.java RevertChangesetHandler.java].
     332
     333==== Mapillary ====
     334See [https://github.com/JOSM/Mapillary/blob/master/src/main/java/org/openstreetmap/josm/plugins/mapillary/io/remotecontrol/MapillaryRemoteControl.java MapillaryRemoteControl.java].
     335Either `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/`.
     336
     337==== Compilation of plugin remote control commands ====
     338||= Plugin =||= **Command** =||= **Parameter** =||= **Required/ \\ Optional** =||= **Meaning** =||
     339|| Reverter || `revert_changeset` ||  ||  || Base command to revert a changeset ||
     340|| || || `id` ||  R  || The changeset id to use (should match regex `[0-9]+`). Since version 36321, you can pass multiple ids separated by commas. ||
     341|| MapWithAI || `mapwithai` || || || Base command to download MapWithAI data ||
     342|| || || `max_obj` ||  O  || Set the maximum number of objects the user can add per action from the MapWithAI layer. Should match regex `[0-9]+`. ||
     343|| || || `switch_layer` ||  O  || Use if you want to force users to automatically switch layers when they add data to OSM. Takes `true`/`false`. ||
     344|| || || `bbox` ||  O  || The bbox to download (`lat,lon,lat,lon` -- assumes the bbox will not cross meridian) ||
     345|| || || `crop_bbox` ||  O  || Crop downloaded MapWithAI data (roads only) to this bbox. Tasking managers may also generate a well-known layer. ||
     346|| || || `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). ||
     347|| || || `source` ||  O  || The source to use when uploading to OSM (changeset source) ||
     348|| Mapillary || `photo` || || || Base command to download a Mapillary photo (may be extended to other imagery sources in the future) ||
     349|| || || `photo` ||  R/O  || The id of the image to show and download. Either this or `sequence` must be specified. ||
     350|| || || `sequence` ||  R/O  || The id of the sequence to show and download. First image is shown in image viewer. ||
    315351----
    316352Back to [wikitr:/Help/Preferences/RemoteControl Remote control preferences] \\