We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b16da5 commit 185225bCopy full SHA for 185225b
src/components/map/index.tsx
@@ -266,7 +266,7 @@ export const MapComponent = () => {
266
const handleOpenOSM = useCallback(() => {
267
if (!mapRef.current) return;
268
const { lng, lat } = mapRef.current.getCenter();
269
- const zoom = mapRef.current.getZoom();
+ const zoom = Math.round(mapRef.current.getZoom());
270
const osmURL = `https://www.openstreetmap.org/#map=${zoom}/${lat}/${lng}`;
271
window.open(osmURL, '_blank');
272
}, []);
0 commit comments