Merge branch 'iipbs/common/main' into iipbs/wr/drgtPopup
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user