| | |
| | | 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 () { |
| | | |