diff options
Diffstat (limited to 'snap.html')
| -rwxr-xr-x | snap.html | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }).addTo(map); |
