From af8d4c8fb7b9a81bbcd18b078ebaab40885c94a3 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 31 Jan 2026 16:07:58 +0800
Subject: [PATCH] feat:数据驾驶舱,离线设备增加图例
---
applications/drone-command/src/utils/cesium/adminBoundary.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/applications/drone-command/src/utils/cesium/adminBoundary.js b/applications/drone-command/src/utils/cesium/adminBoundary.js
index 381dc7d..25caf0d 100644
--- a/applications/drone-command/src/utils/cesium/adminBoundary.js
+++ b/applications/drone-command/src/utils/cesium/adminBoundary.js
@@ -24,6 +24,7 @@
fill: Cesium.Color.fromCssColorString(config.fillColor).withAlpha(config.fillAlpha),
clampToGround: true,
})
+ boundarySource.name = 'jaBoundarySource'
viewer.dataSources.add(boundarySource)
const lineSource = new Cesium.CustomDataSource('jaBoundaryLineSource')
@@ -42,6 +43,7 @@
},
})
})
+ lineSource.name = 'jaBoundaryLineSource'
viewer.dataSources.add(lineSource)
const labelSource = new Cesium.CustomDataSource('jaBoundaryLabelSource')
@@ -67,6 +69,7 @@
},
})
})
+ labelSource.name = 'jaBoundaryLabelSource'
viewer.dataSources.add(labelSource)
if (config.zoomTo) {
--
Gitblit v1.9.3