diff --git a/view/main.js b/view/main.js index 781263c..ecf34f7 100755 --- a/view/main.js +++ b/view/main.js @@ -60,6 +60,6 @@ delete window._router_; /* (4) Get geolocation ---------------------------------------------------------*/ -navigator.geolocation && navigator.geolocation.getCurrentPosition(function(loc){ +navigator.geolocation && navigator.geolocation.watchPosition(function(loc){ gstore.data.loc = [ loc.coords.latitude, loc.coords.longitude ]; }, null, { enableHighAccuracy: true });