Supply error-callback and options to watchPosition

This commit is contained in:
Tony Garnock-Jones 2016-06-20 11:02:06 -04:00
parent 95c17a190c
commit c8f2ea8a56
1 changed files with 6 additions and 0 deletions

View File

@ -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 {