Do not change zoom level in locate control

pull/271/head
Candid Dauth 2024-04-26 12:35:23 +02:00
rodzic 19a8e9f770
commit 8a12ce3984
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -216,6 +216,7 @@ function useLocateControl(map: Ref<Map>, context: FacilMapContext): Ref<Raw<Cont
inViewNotFollowing: "outOfView"
},
setView: "untilPan",
keepCurrentZoomLevel: true,
// These class names are not used anywhere, we just set them to avoid the default class names being set,
// which would apply the default icons using CSS.
icon: "fm-locate-control-icon",