From e17c0a2eceac008182504bdd40143658ab494c0b Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Wed, 29 Oct 2025 16:52:01 +0800
Subject: [PATCH] feat:新增/编辑
---
src/views/layerManagement/components/utils.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/views/layerManagement/components/utils.js b/src/views/layerManagement/components/utils.js
index b343230..ede07e4 100644
--- a/src/views/layerManagement/components/utils.js
+++ b/src/views/layerManagement/components/utils.js
@@ -116,6 +116,8 @@
console.log('当前不允许绘制,whetherToDraw 为 false');
return;
}
+
+
this.drawingMode = true
this.curPolygon = new Cesium.PolygonHierarchy()
@@ -334,12 +336,15 @@
// 如果不是绘制模式
if (!this.drawingMode) {
if (!isPolygon) {
+
+
this.editingMode = false
this.editPolygonPointDataSource.entities.show = false
return
}
if (isPolygon) {
+
this.editingMode = true
this.editPolygonPointDataSource.entities.show = true
}
--
Gitblit v1.9.3