watch position over time instead of getCurrent
This commit is contained in:
parent
d534f1f37c
commit
51dab68805
|
@ -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 });
|
||||
|
|
Loading…
Reference in New Issue