| | 62 | |
| | 63 | |
| | 64 | |
| | 65 | === {{{imagery}}} === |
| | 66 | Instructs JOSM to add an imagery (WMS/TMS) layer. |
| | 67 | {{{ |
| | 68 | GET /imagery?title=...&type=...&url=... |
| | 69 | }}} |
| | 70 | where |
| | 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 | |
| | 86 | Instructs JOSM to download objects with a given id. |
| | 87 | {{{ |
| | 88 | GET /load_object?new_layer=true|false&objects=... |
| | 89 | }}} |
| | 90 | where |
| | 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 | |