This commit is contained in:
Skylar Ittner 2019-09-11 20:29:37 -06:00
parent d3d41a5e75
commit 0447233d33

View File

@ -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);