does someone knows how to get lat/long from a the cursor position? thanks |
Good question. It seems that the cursor does not give the coordinates. However, I have a workaround:
|
Additionnaly to the solution to use the permalink button, you can also use the firebug or webkit console, and ask the coordinates with the call:
|
In Potlatch 2, Edit mode, drop down Options menu in top right hand corner, choose 'Show mouse latitude and longitude' and tick box. Lat and Long will appear in left top of edit screen. Is this what you want? |
Do you mean from the map on the OSM website http://www.openstreetmap.org/ ? If so the answer is to click "permalink" at the bottom right-hand corner, and it'll appear in the URL bar. Or perhaps you mean obtain the cursor position in Javascript on your own map using OSM data? Or something else? |