diff --git a/client/src/components/liberationmap/LiberationMap.tsx b/client/src/components/liberationmap/LiberationMap.tsx index 24253f73..97cfe342 100644 --- a/client/src/components/liberationmap/LiberationMap.tsx +++ b/client/src/components/liberationmap/LiberationMap.tsx @@ -25,10 +25,10 @@ export default function LiberationMap() { const map = useRef(null); const mapCenter = useAppSelector(selectMapCenter); useEffect(() => { - map.current?.setView(mapCenter, 8, { animate: true, duration: 1 }); + map.current?.setView(mapCenter, map.current?.getZoom() ?? 8, { animate: true, duration: 1 }); }); return ( - +