Supply error-callback and options to watchPosition
This commit is contained in:
parent
95c17a190c
commit
c8f2ea8a56
|
@ -53,6 +53,12 @@ ground dataspace G {
|
|||
mapInitialized = true;
|
||||
map.setCenter({lat: pos.coords.latitude, lng: pos.coords.longitude});
|
||||
}
|
||||
}, function (err) {
|
||||
console.error(err);
|
||||
alert(err);
|
||||
}, {
|
||||
enableHighAccuracy: true,
|
||||
timeout: 15000
|
||||
}));
|
||||
|
||||
react {
|
||||
|
|
Loading…
Reference in New Issue