Pan to location when clicking locate control again

pull/265/head
Candid Dauth 2024-04-11 22:16:22 +02:00
rodzic e1130c0a78
commit 81cd918afc
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -153,6 +153,11 @@ function useLocateControl(map: Ref<Map>): Ref<Raw<Control.Locate>> {
markerStyle: { pane: "fm-raised-marker", zIndexOffset: 10000 },
locateOptions: {
enableHighAccuracy: true
},
clickBehavior: {
inView: "stop",
outOfView: "setView",
inViewNotFollowing: "outOfView"
}
}))
),