From 8e3f553797ceb82a1d860ccaac39bc23bc5d8333 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 11 Sep 2019 20:47:32 -0600 Subject: [PATCH] locate control: don't snap back to zoom --- www/assets/js/map_leaflet.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/assets/js/map_leaflet.js b/www/assets/js/map_leaflet.js index dc18f69..5ea6251 100644 --- a/www/assets/js/map_leaflet.js +++ b/www/assets/js/map_leaflet.js @@ -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