We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb097b commit 7198b67Copy full SHA for 7198b67
src/layers/UseCurrentLocationLayer.tsx
@@ -75,7 +75,7 @@ export default function useCurrentLocationLayer(map: Map, locationState: Current
75
76
if (locationState.syncView) {
77
const currentZoom = map.getView().getZoom()
78
- const targetZoom = currentZoom == undefined || currentZoom < 8 ? 8 : currentZoom
+ const targetZoom = currentZoom == undefined || currentZoom < 16 ? 16 : currentZoom
79
const zoomDifference = Math.abs(targetZoom - (currentZoom || 0))
80
if (zoomDifference > 0.1) {
81
map.getView().animate({ zoom: targetZoom, center: coord, duration: 400 })
0 commit comments