| | |
| | | break; |
| | | case "d2": //坡度分析 |
| | | that.isslopeFlag = !that.isslopeFlag; |
| | | var val = { |
| | | name: "Lengend", |
| | | id: res, |
| | | vshow: that.isslopeFlag |
| | | }; |
| | | this.$bus.$emit("mapChangeBox", val); |
| | | window.PDelevationTool = new SmartEarth.ElevationTool(sgworld); //全局变量 |
| | | if (that.isslopeFlag == true) { |
| | | PDelevationTool.type = "slope"; |
| | |
| | | PDelevationTool.type = "none"; |
| | | } |
| | | PDelevationTool.render(); |
| | | debugger |
| | | break; |
| | | case "d3": //路径分析 |
| | | |
| | |
| | | } |
| | | break; |
| | | case "d10": //地面整平 |
| | | if (this.DXZPState != null) { |
| | | this.DXZPState.drawHandler && this.DXZPState.drawHandler.destroy(); |
| | | Viewer._container.style.cursor = "default"; |
| | | this.DXZPState.tooltip && this.DXZPState.tooltip.show(false); |
| | | if (window.DXTerrainFlattening != null) { |
| | | DXTerrainFlattening.remove(); |
| | | } |
| | | window.DXTerrainFlattening = null; |
| | | this.DXZPState = null; |
| | | } else { |
| | | this.DXZPState = sgworld.Creator.createSimpleGraphic( |
| | | "polygon", |
| | | { |
| | | clampToGround: true, |
| | | }, |
| | | function (entity) { |
| | | let positions = entity.polygon.hierarchy.getValue().positions; |
| | | sgworld.Creator.SimpleGraphic.remove(entity.id); |
| | | window.DXTerrainFlattening = |
| | | sgworld.Creator.createTerrainModifier( |
| | | "地形压平", |
| | | positions, |
| | | 10, |
| | | {} |
| | | ); |
| | | } |
| | | ); |
| | | } |
| | | var val = { |
| | | name: "Trrain", |
| | | id: res, |
| | | }; |
| | | this.$bus.$emit("mapChangeBox", val); |
| | | // if (this.DXZPState != null) { |
| | | // this.DXZPState.drawHandler && this.DXZPState.drawHandler.destroy(); |
| | | // Viewer._container.style.cursor = "default"; |
| | | // this.DXZPState.tooltip && this.DXZPState.tooltip.show(false); |
| | | // if (window.DXTerrainFlattening != null) { |
| | | // DXTerrainFlattening.remove(); |
| | | // } |
| | | // window.DXTerrainFlattening = null; |
| | | // this.DXZPState = null; |
| | | // } else { |
| | | // this.DXZPState = sgworld.Creator.createSimpleGraphic( |
| | | // "polygon", |
| | | // { |
| | | // clampToGround: true, |
| | | // }, |
| | | // function (entity) { |
| | | // let positions = entity.polygon.hierarchy.getValue().positions; |
| | | // sgworld.Creator.SimpleGraphic.remove(entity.id); |
| | | // window.DXTerrainFlattening = |
| | | // sgworld.Creator.createTerrainModifier( |
| | | // "地形压平", |
| | | // positions, |
| | | // 10, |
| | | // {} |
| | | // ); |
| | | // } |
| | | // ); |
| | | // } |
| | | |
| | | break; |
| | | |
| | |
| | | .menu_Box { |
| | | width: 100%; |
| | | height: 100%; |
| | | |
| | | margin: 0; |
| | | padding: 0; |
| | | overflow-y: auto; |