Get watch current location in web application

Get watch current location in web application

BY 31 Jul 2015 Web Code Snippet
To watch your current location you can use watchPosition() method from Geolocation API (and method clearWatch() to stop watching). Also don’t forget to add “location” privilage and “location.gps” feature to config.xml.
Written by