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 |
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