locate control: don't snap back to zoom

master
Skylar Ittner 5 years ago
parent 0447233d33
commit 8e3f553797

@ -36,6 +36,7 @@ function leafletMap() {
map.locateControl = L.control.locate({
flyTo: false, // Hopefully this will lower the number of map tile requests when location is found
showPopup: false,
keepCurrentZoomLevel: true, // Stop it from snapping back to max zoom
locateOptions: {
enableHighAccuracy: true,
maxZoom: 18

Loading…
Cancel
Save