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;
|
mapInitialized = true;
|
||||||
map.setCenter({lat: pos.coords.latitude, lng: pos.coords.longitude});
|
map.setCenter({lat: pos.coords.latitude, lng: pos.coords.longitude});
|
||||||
}
|
}
|
||||||
|
}, function (err) {
|
||||||
|
console.error(err);
|
||||||
|
alert(err);
|
||||||
|
}, {
|
||||||
|
enableHighAccuracy: true,
|
||||||
|
timeout: 15000
|
||||||
}));
|
}));
|
||||||
|
|
||||||
react {
|
react {
|
||||||
|
|
Loading…
Reference in New Issue