From 0e5b1764e3eb59e5f4aac4d380c6fda3f0c1e2fe Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 05 Feb 2026 17:23:42 +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