From d8d0f5fb17025c8ea92ef9f03ad5cc57d18b3b16 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 24 Jun 2021 09:08:54 +0800
Subject: [PATCH] xj
---
widgets/digTheEarth/Widget.js | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/widgets/digTheEarth/Widget.js b/widgets/digTheEarth/Widget.js
index 18c553f..ad787cd 100644
--- a/widgets/digTheEarth/Widget.js
+++ b/widgets/digTheEarth/Widget.js
@@ -28,7 +28,7 @@
})
$("#beginigTheEarth").click(()=>{
- that.beginDigTheEarth();
+ that.beginDigTheEarth();
})
},
@@ -117,15 +117,16 @@
});
handlerPolygon.activate();
document.getElementById("cleardigTheEarth").onclick = function () {
- viewer.scene.globe.removeAllExcavationRegion();
- if (handlerPolygon.polygon) {
- handlerPolygon.polygon.show = false;
- }
- if (handlerPolygon.polyline) {
- handlerPolygon.polyline.show = false;
- }
+ // viewer.scene.globe.removeAllExcavationRegion();
+ // if (handlerPolygon.polygon) {
+ // handlerPolygon.polygon.show = false;
+ // }
+ // if (handlerPolygon.polyline) {
+ // handlerPolygon.polyline.show = false;
+ // }
// handlerPolygon.polygon.show = false;
// handlerPolygon.polyline.show = false;
+ that.closesDigTheEarth();
};
if (!scene.pickPositionSupported) {
--
Gitblit v1.9.3