diff --git a/src/components/Map.jsx b/src/components/Map.jsx index f45087f..4375e2d 100644 --- a/src/components/Map.jsx +++ b/src/components/Map.jsx @@ -500,9 +500,9 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine, //if (index == 2 && from == "other") { // //flyToLayer(layerIdentifier, baseUrl, 100); //} - //if (index == 0 && from == "other") { - // flyToLayer(layerIdentifier, baseUrl, 100); - //} + if (index == 1 && from == "other") { + flyToLayer(layerIdentifier, baseUrl, 100); + } //getLayerBoundsAndFit(wmsUrl, layerName); if (baseUrl.includes('/gwc/service/wms')) { diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 69d7a97..69a1370 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -363,15 +363,15 @@ export default function StationDashboard() { bodyStyle={{ padding: 0, position: 'relative', overflow: 'hidden', height: 500 }} >