From e8f3a7737e4e0702fb113742d2feb761dccf14b7 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sun, 26 Mar 2017 23:15:33 -0400 Subject: [PATCH] quick debug function --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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});