ref: remove default "returnToPrevBounds"

This commit is contained in:
relikd
2024-07-03 00:16:28 +02:00
parent cc8833037f
commit ea5d41a8ad
2 changed files with 2 additions and 7 deletions

View File

@@ -14,11 +14,7 @@ function MapLocationInit(mapId, options = {}) {
zoom: 2,
...(options.map || {})
});
L.control.locate({
returnToPrevBounds: true,
showPopup: false,
...(options.locate || {})
}).addTo(map);
L.control.locate({ showPopup: false, ...(options.locate || {}) }).addTo(map);
function loadPos() {
if (!valField.value) {