Adjust locatecontrol options

This commit is contained in:
Skylar Ittner 2019-09-11 23:46:32 -06:00
parent d298fefb6f
commit 1d0f6c825e

View File

@ -26,12 +26,11 @@ 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
maxZoom: 16
},
setView: "untilPan",
setView: "untilPanOrZoom",
icon: "far fa-compass",
iconLoading: "far fa-compass fa-spin"
}).addTo(map);