hi, i show user current location in map.i need after show location by receive lat and lon via user show location on map. thanks for help.
</body> </html>
showing 5 of 6
show 1 more comments
|
NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum
hi, i show user current location in map.i need after show location by receive lat and lon via user show location on map. thanks for help.
</body> </html>
showing 5 of 6
show 1 more comments
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Question tags:
question asked: 24 Nov '19, 09:55
question was seen: 6,255 times
last updated: 24 Nov '19, 10:40
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 are trying to do and how it is related to OpenStreetMap?
What sort of platform are you asking about (on the web, on a phone, something else?) and what sort of map (tile-based, vector based, something else again?)
Questions such as "how do I find the user's location from a web page" (which may be part of what you are asking) are general web technology questions - you'll find answers at this help site but much more in-depth answers elsewhere.
now can help me ?
er - not really, since it's unclear what "navigator" is in your code snippet. I can show you an example of web-based geolocation that works, though - see here. That's using leaflet (as you seem to be doing also). Pressing the "centre" button here will invoke it.
solved, thanks
can set marker to center location ?
There's a ton of examples at the leaflet site here - including setting markers.