| | |
| | | }) |
| | | |
| | | $("#beginigTheEarth").click(()=>{ |
| | | that.beginDigTheEarth(); |
| | | that.beginDigTheEarth(); |
| | | |
| | | }) |
| | | }, |
| | |
| | | }); |
| | | 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) { |