OpenStreetMap 标志 OpenStreetMap

obtaining GPS points

mikekenny 于 2009年十二月19日 以 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?

电子邮件图标 Bluesky图标 Facebook图标 LinkedIn图标 Mastodon图标 Telegram图标 X图标

讨论

wilpin2009年12月19日 13:14 的评论

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

chillly2009年12月19日 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/

登录以留下评论