Skip to content

Commit 7198b67

Browse files
committed
closer zoom
1 parent 8eb097b commit 7198b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layers/UseCurrentLocationLayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default function useCurrentLocationLayer(map: Map, locationState: Current
7575

7676
if (locationState.syncView) {
7777
const currentZoom = map.getView().getZoom()
78-
const targetZoom = currentZoom == undefined || currentZoom < 8 ? 8 : currentZoom
78+
const targetZoom = currentZoom == undefined || currentZoom < 16 ? 16 : currentZoom
7979
const zoomDifference = Math.abs(targetZoom - (currentZoom || 0))
8080
if (zoomDifference > 0.1) {
8181
map.getView().animate({ zoom: targetZoom, center: coord, duration: 400 })

0 commit comments

Comments
 (0)