liuyg
2021-06-22 c3bb18b5acb4c8453c6f86a376dd37bd93ae3bc3
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 () {