地图飞过去

This commit is contained in:
mmc
2026-09-02 15:13:22 +08:00
parent 91fd8a3457
commit 1d681316a7
3 changed files with 9 additions and 9 deletions

View File

@@ -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')) {

View File

@@ -363,15 +363,15 @@ export default function StationDashboard() {
bodyStyle={{ padding: 0, position: 'relative', overflow: 'hidden', height: 500 }}
>
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
<iframe
{/*<iframe
src="https://pvs.satabot.com/?platform=web"
style={{ width: '100%', height: '100%', border: 'none', borderRadius: '8px', position: "absolute" }}
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
title={t('home.s20')}
/>
/>*/}
{/*<CesiumMap from="other" />*/}
<CesiumMap from="other" />
</div>
</Card>

View File

@@ -126,7 +126,7 @@ const RealTimeMonitorPage = () => {
bodyStyle={{ padding: 0, position: 'relative', height: 400, overflow: 'hidden' }}
>
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
<iframe
{/*<iframe
src="https://pvs.satabot.com/?platform=web"
style={{
width: '100%',
@@ -138,10 +138,10 @@ const RealTimeMonitorPage = () => {
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
title={t('home.s20')}
/>
/>*/}
{/*<CesiumMap from="other" />*/}
<CesiumMap from="other" />
</div>
</Card>