summaryrefslogtreecommitdiff
path: root/snap.html
diff options
context:
space:
mode:
Diffstat (limited to 'snap.html')
-rwxr-xr-xsnap.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/snap.html b/snap.html
index 7ae8234..47184f0 100755
--- a/snap.html
+++ b/snap.html
@@ -43,7 +43,8 @@
window.map = map;
window.layer = layer;
- map = L.map('map').setView([51.505, -0.09], 13);
+ map = L.map('map');
+ map.locate({setView: true, maxZoom: 16});
layer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);