From c8f2ea8a56fd0f35693c12278735319498c3f2e2 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Mon, 20 Jun 2016 11:02:06 -0400 Subject: [PATCH] Supply error-callback and options to watchPosition --- js/examples/location/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/examples/location/index.js b/js/examples/location/index.js index 6117642..b69b0e9 100644 --- a/js/examples/location/index.js +++ b/js/examples/location/index.js @@ -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 {