fix: defaultZoom props 수정

This commit is contained in:
swcho
2025-08-13 16:20:15 +09:00
parent e797bdbdf7
commit 428f617802
@@ -125,7 +125,7 @@ function Gis({
height: height = "h-[calc(100vh-5rem)]",
onOpenPopup = (data) => { },
droughtDates = { startYmd: '', endYmd: '' },
defaultZoom = gisCore.defaults.zoom,
defaultZoom = undefined,
defaultLonLat = [127.4875, 37.4916],
}) {
const mapRef = useRef();
@@ -211,7 +211,7 @@ function Gis({
}).extend([]),
view: new View({
projection: GisApp.TO_PROJ,
zoom: defaultZoom,
zoom: defaultZoom ?? gisCore.defaults.zoom,
center: olProj.transform(
defaultLonLat,
GisApp.FROM_PROJ,