diff --git a/src/components/GoogleMap/index.tsx b/src/components/GoogleMap/index.tsx index 35aec6a..844ff52 100644 --- a/src/components/GoogleMap/index.tsx +++ b/src/components/GoogleMap/index.tsx @@ -67,9 +67,9 @@ export const GoogleMap = forwardRef(function Go } const map = new mapsLib.Map(containerRef.current!, { + ...mapOptions, center: initialCenter || center || mapOptions.center, zoom: initialZoom || zoom || mapOptions.zoom, - ...mapOptions, }); setMap(map); @@ -80,6 +80,8 @@ export const GoogleMap = forwardRef(function Go useApplyMapOptions(map, { ...mapOptions, + center: center || mapOptions.center, + zoom: zoom || mapOptions.zoom, }); useApplyMapEvent(map, {