This example shows you how to get user geolocation data:
To display it on screen, and also how to get:
And draw it on map.
Requires internet connection on user side to work. This extension isn't using GPS data, but current user IP address - so it works on all platforms: PC, Mac, Linux, Android, iOS, HTML5... It's not as accurate as GPS, but good enough to get country and city. Data is gathered from http://freegeoip.net/ .
DEMO
https://gnysek.github.io/GeolocationDemo/index.html
Please rate and write a review after downloading!
End User Licence Agreement (EULA).