From 0447233d337b138a600e63655b11246b507f5f72 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 11 Sep 2019 20:29:37 -0600 Subject: [PATCH] Fix #12 --- www/assets/js/map_leaflet.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/assets/js/map_leaflet.js b/www/assets/js/map_leaflet.js index 2f7aa50..dc18f69 100644 --- a/www/assets/js/map_leaflet.js +++ b/www/assets/js/map_leaflet.js @@ -34,7 +34,13 @@ function leafletMap() { } map.locateControl = L.control.locate({ - flyTo: true, + flyTo: false, // Hopefully this will lower the number of map tile requests when location is found + showPopup: false, + locateOptions: { + enableHighAccuracy: true, + maxZoom: 18 + }, + setView: "untilPan", icon: "far fa-compass", iconLoading: "far fa-compass fa-spin" }).addTo(map);