Hello. I would like to embed the iD-Editor into an own web project. What I have is a list of osm-objects which I am interested in which would be displayed next to the iD "frame". With a click on a list item I would like to jump to the coordinate of the object and select it. Is it possible to solve this programmatically with javascript? Is there some kind of API for iD to achieve this? Thanks. asked 09 Mar '17, 08:13 autumnus aseerel4c26 ♦ |
Okay, I found a solution myself: With the help of this API https://github.com/openstreetmap/iD/blob/master/API.md I can construct an URL with osm_type, osm_id and coordinate that does what I want. And then with the help of that: I display the result in a By the way: I use a self hosted iD Editor. answered 09 Mar '17, 13:07 autumnus thanks for sharing! :)
(10 Mar '17, 00:15)
aseerel4c26 ♦
You are welcome! But if anybody maybe has a more elegant solution...
(10 Mar '17, 06:57)
autumnus
|