From c3bb18b5acb4c8453c6f86a376dd37bd93ae3bc3 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 22 Jun 2021 10:13:53 +0800
Subject: [PATCH] 空间分析关闭逻辑修改
---
widgets/digTheEarth/Widget.js | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/widgets/digTheEarth/Widget.js b/widgets/digTheEarth/Widget.js
index 0280d81..2501555 100644
--- a/widgets/digTheEarth/Widget.js
+++ b/widgets/digTheEarth/Widget.js
@@ -175,21 +175,18 @@
that.handlerPolygon = handlerPolygon;
},
handlerPolygon: '',
- closesDigTheEarth: function (froms) {
+ closesDigTheEarth: function () {
// console.log('gaunbi');
var that = this;
- if (froms == 'frist') {
- // console.log('frist');
- } else {
- that.map.scene.globe.removeAllExcavationRegion();
- if (that.handlerPolygon.polygon) {
- that.handlerPolygon.polygon.show = false;
- }
- if (that.handlerPolygon.polyline) {
- that.handlerPolygon.polyline.show = false;
- }
- that.handlerPolygon.deactivate();
+ that.map.scene.globe.removeAllExcavationRegion();
+ if (that.handlerPolygon.polygon) {
+ that.handlerPolygon.polygon.show = false;
}
+ if (that.handlerPolygon.polyline) {
+ that.handlerPolygon.polyline.show = false;
+ }
+ that.handlerPolygon.deactivate();
+
},
onOpen: function () {
--
Gitblit v1.9.3