[OSM-dev] detect running JOSM from web pages

Stephan Knauss osm at stephans-server.de
Thu Jul 29 00:03:52 BST 2010


Hi,

I extended JOSM RemoteControl to provide protocol version information. 
Besides the possibility for clients to choose a compatible command set 
this enables web pages to query for a running JOSM.

Because of restrictions due to same origin policy this was not possible 
with the existing plugin. RemoteControl now implements CORS (simple 
requests without preflight) as well as jsonp for the version check.

I implemented a live demo on the cuisine map. In the upper right corner 
will be an edit button in case a running RemoteCotnrol is detected.

http://toolserver.org/~stephankn/cuisine/

The new API command is documented on the wiki:
http://wiki.openstreetmap.org/wiki/JOSM/Plugins/RemoteControl

Hope somebody considers this useful.

Stephan



More information about the dev mailing list