Skip to content

Commit

Permalink
Do not change zoom level in locate control
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Apr 26, 2024
1 parent 19a8e9f commit 8a12ce3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8a12ce3

Please sign in to comment.