kopia lustrzana https://github.com/FacilMap/facilmap
Pan to location when clicking locate control again
rodzic
e1130c0a78
commit
81cd918afc
|
@ -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"
|
||||
}
|
||||
}))
|
||||
),
|
||||
|
|
Ładowanie…
Reference in New Issue