From 70d097137d08bf1a79943fb44b7086b4d45aac75 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 23 Jun 2021 16:54:20 +0800
Subject: [PATCH] 空间分析选择图层下拉数据和样式

---
 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