diff --git a/components/map/mapbox-map.tsx b/components/map/mapbox-map.tsx index e9ace780..091e7d9f 100644 --- a/components/map/mapbox-map.tsx +++ b/components/map/mapbox-map.tsx @@ -395,12 +395,11 @@ 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: initialZoom, + zoom: currentMapCenterRef.current.zoom, pitch: currentMapCenterRef.current.pitch, bearing: 0, maxZoom: 22, @@ -612,4 +611,4 @@ export const Mapbox: React.FC<{ position?: { latitude: number; longitude: number /> ) -} \ No newline at end of file +}