|
Hi there I'm looking for an easy solution how to add to my OpenStreetMap the icon to get my current position and retrive latitude and longitude. Thanks in advance for your help. Please keep ion mind when relying that I'm a nook. best regards Ossy |
NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum
|
Hi there I'm looking for an easy solution how to add to my OpenStreetMap the icon to get my current position and retrive latitude and longitude. Thanks in advance for your help. Please keep ion mind when relying that I'm a nook. best regards Ossy |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Question tags:
question asked: 13 Oct '20, 10:28
question was seen: 1,396 times
last updated: 13 Oct '20, 10:54
NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum
Can you explain in a bit more detail what you mean by "my OpenStreetMap"? If a generic website, try one of https://duckduckgo.com/?t=ffsb&q=html+geolocation&ia=web .
Sorry about not being clear. Here is my Page. <html><body>
<script src="http://www.openlayers.org/api/OpenLayers.js"></script> <script> var mylat = 46.9 var mylon = 6.6833 map = new OpenLayers.Map("mapdiv"); map.addLayer(new OpenLayers.Layer.OSM());
</script> </body></html>
I would lite to add under the zoom the icon for geo-location, center the map to this location and retrieve the information in my javascript. I have seen some script, but I didn't work for me. Perhars not used corretly.
++ Ossy