Changes between Version 6 and Version 7 of Help/Preferences/RemoteControl


Ignore:
Timestamp:
2012-01-23T19:04:57+01:00 (14 years ago)
Author:
bastiK
Comment:

doc more commands

Legend:

Unmodified
Added
Removed
Modified
  • Help/Preferences/RemoteControl

    v6 v7  
    6060GET /import?url=...
    6161}}}
     62
     63
     64
     65=== {{{imagery}}} ===
     66Instructs JOSM to add an imagery (WMS/TMS) layer.
     67{{{
     68GET /imagery?title=...&type=...&url=...
     69}}}
     70where
     71||= '''Parameter''' =||= '''Required/Optional''' =||= '''Meaning''' =||
     72|| `title` || O || The display name of the layer ||
     73|| `type` || O || Type of the layer. Possible values are `wms` and `tms` [[BR]] (since !RemoteControl Version 1.3) ||
     74|| `url` || R || The Request URL, including patterns. Must be the last parameter, everything after "&url=" is interpreted as URL, even if it contains "&" characters.  ||
     75
     76==== Examples ====
     77* TMS layer "osm" {{{http://tile.openstreetmap.org/{zoom}/{x}/{y}.png}}}
     78
     79[http://localhost:8111/imagery?title=osm&type=tms&url=http://tile.openstreetmap.org/%7Bzoom%7D/%7Bx%7D/%7By%7D.png]
     80
     81* WMS layer "landsat" {{{http://irs.gis-lab.info/?layers=landsat&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox} }}}
     82[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]
     83
     84=== {{{load_object}}} ===
     85
     86Instructs JOSM to download objects with a given id.
     87{{{
     88GET /load_object?new_layer=true|false&objects=...
     89}}}
     90where
     91||= '''Parameter''' =||= '''Required/Optional''' =||= '''Meaning''' =||
     92|| `objects` || R || Comma separated list of object ids, e.g. "{{{n1234,n1235,w84,r958493}}}" ||
     93|| `new_layer` || O || If true, downloads to a new layer ||
     94
     95==== Example ====
     96
     97[http://localhost:8111/load_object?new_layer=true&objects=w106159509]
     98
     99
    62100=== {{{version}}} ===
    63101This 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.