Suaicheantas OpenStreetMap OpenStreetMap

obtaining GPS points

Air a phostadh le mikekenny 19 An Dùbhlachd 2009 sa chànan English

Probably a stupid question, but is there a way of using openstreetmap to insert a map into my web page in such a way that when I click on the map the GPS coordinates of the point I clicked are made available to my JavaScript?

Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

Beachd le wilpin 19 An Dùbhlachd 2009 aig 13:14

when exporting an area you are given the minlong/maxlong & minlat/maxlat values to calculate all mousemove coordinates within the box.

Beachd le chillly 19 An Dùbhlachd 2009 aig 13:18

If you mean the longitude and latitude of the point then you can do this with OpenLayers. OL is the Javascript that creates a slippy map, there are examples on the OpenLayers website http://www.openlayers.org/

Clàraich a-steach gus do bheachd a thoirt