feat: add locate options

This commit is contained in:
relikd
2024-06-27 01:51:33 +02:00
parent 880bca3501
commit 539aa0fcf8
2 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ function MapLocationInit(mapId, options = {}) {
L.control.locate({
returnToPrevBounds: true,
showPopup: false,
...(options.locate || {})
}).addTo(map);
function loadPos() {