diff --git a/components/map/mapbox-map.tsx b/components/map/mapbox-map.tsx index 3f2d5f2b..e9ace780 100644 --- a/components/map/mapbox-map.tsx +++ b/components/map/mapbox-map.tsx @@ -395,11 +395,12 @@ export const Mapbox: React.FC<{ position?: { latitude: number; longitude: number initialZoom = 1.3; } + currentMapCenterRef.current.zoom = initialZoom; map.current = new mapboxgl.Map({ container: mapContainer.current, style: 'mapbox://styles/mapbox/satellite-streets-v12', center: currentMapCenterRef.current.center, - zoom: currentMapCenterRef.current.zoom, + zoom: initialZoom, pitch: currentMapCenterRef.current.pitch, bearing: 0, maxZoom: 22,