From 6abf755093a5e662a0d378152b5695882a6fbb51 Mon Sep 17 00:00:00 2001 From: nilsnolde Date: Fri, 30 Jan 2026 12:39:23 +0100 Subject: [PATCH] round zoom level, osm.org will floor it --- src/components/map/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/index.tsx b/src/components/map/index.tsx index d347eba..f95163e 100644 --- a/src/components/map/index.tsx +++ b/src/components/map/index.tsx @@ -266,7 +266,7 @@ export const MapComponent = () => { const handleOpenOSM = useCallback(() => { if (!mapRef.current) return; const { lng, lat } = mapRef.current.getCenter(); - const zoom = mapRef.current.getZoom(); + const zoom = Math.round(mapRef.current.getZoom()); const osmURL = `https://www.openstreetmap.org/#map=${zoom}/${lat}/${lng}`; window.open(osmURL, '_blank'); }, []);