liuyg
2021-06-22 c3bb18b5acb4c8453c6f86a376dd37bd93ae3bc3
widgets/digTheEarth/Widget.js
@@ -175,12 +175,9 @@
                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;
@@ -189,7 +186,7 @@
                        that.handlerPolygon.polyline.show = false;
                    }
                    that.handlerPolygon.deactivate();
                }
            },
            onOpen: function () {