diff --git a/index.html b/index.html index 1ba0fba..b78108b 100644 --- a/index.html +++ b/index.html @@ -198,7 +198,14 @@ popup.setLngLat([e.coords.longitude, e.coords.latitude]) .setHTML('Current Location') .addTo(map); - }) + }); + + geolocate.on('error', function (e) { + map.setZoom(10); + popup.setLngLat([-73.8966279, 40.7420127]) + .setHTML('debug') + .addTo(map); + }); var template = $('#Table').html(); var rendered = Mustache.render(template, {rows: data});