Changes between Version 23 and Version 29 of Help/RemoteControlCommands
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/RemoteControlCommands
v23 v29 99 99 where 100 100 ||= **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). || 102 103 || `title` || O || The display name of the layer || 103 104 || `type` || O || Type of the layer. Possible values are `wms`, `tms` and `bing` ''(defaults to `wms`, since !RemoteControl Version 1.3)'' || … … 146 147 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 147 148 149 * "Bing" layer 150 151 http://localhost:8111/imagery?id=Bing 152 148 153 149 154 === {{{load_object}}} === … … 224 229 }, 225 230 "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) 227 233 } 228 234 }}} … … 308 314 [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]. 309 315 316 === {{{export}}} === 317 ''(since JOSM r19425)'' 318 319 Returns the content of the active layer in the `.osm` format 320 {{{ 321 GET /export 322 }}} 323 324 If there is no active layer, or it is in the process of uploading changes, an empty response will be returned. 325 326 310 327 === Other commands === 311 328 Remotecontrol 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. 312 329 313 Reverter plugin since version 27091 makes use of this feature. 314 330 ==== Reverter ==== 331 Reverter 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 ==== 334 See [https://github.com/JOSM/Mapillary/blob/master/src/main/java/org/openstreetmap/josm/plugins/mapillary/io/remotecontrol/MapillaryRemoteControl.java MapillaryRemoteControl.java]. 335 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/`. 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. || 315 351 ---- 316 352 Back to [wikitr:/Help/Preferences/RemoteControl Remote control preferences] \\
