From 233e4fc4f35bd00a36ee34a7fbf5e47b41db26db Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 17 Nov 2025 09:54:44 +0800
Subject: [PATCH] feat:更新初始化地形
---
src/views/resource/components/DrawPolygon.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/views/resource/components/DrawPolygon.vue b/src/views/resource/components/DrawPolygon.vue
index ae7a8ac..59428dd 100644
--- a/src/views/resource/components/DrawPolygon.vue
+++ b/src/views/resource/components/DrawPolygon.vue
@@ -177,7 +177,7 @@
curPolygonEntity.polyline = {
width: 2,
material: Cesium.Color.WHITE,
- clampToGround: false,
+ clampToGround: true,
};
curPolygonEntity.polyline.positions = new Cesium.CallbackProperty(function () {
@@ -214,7 +214,7 @@
viewInstance.value.removeMouseHandler('drawCustomPolygon');
}
-const emit = defineEmits(['upDateDrawState']);
+const emit = defineEmits(['upDateDrawState',]);
function updatePolygon() {
let polygon = savePolygonPosition.reduce((pre, cur) => {
@@ -222,7 +222,7 @@
return pre;
}, []);
polygon.push(polygon[0]);
- console.log('绘制', `POLYGON((${polygon.join(',')}))`);
+
// 接口
sdfwUpdate({
ids: selectionIds.value,
@@ -243,6 +243,7 @@
cancel()
})
}
+
function cancel() {
remove();
@@ -293,7 +294,7 @@
background: rgba(0, 0, 0, 0.6);
white-space: nowrap;
border-radius: 4px;
-
+pointer-events: none;
&::after {
content: '';
position: absolute;
--
Gitblit v1.9.3