From 4b8943bd66fc721f8381b74eff259a2f7ffef513 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 27 二月 2023 17:34:19 +0800 Subject: [PATCH] 地形压平添加参数;坡度分析 添加图例,数据上传,元数据管理,资料馆添加元数据查询,综合展示图片更换 --- src/views/Synthesis/LeftMenu.vue | 69 ++++++++++++++++++++-------------- 1 files changed, 41 insertions(+), 28 deletions(-) diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue index 0df451e..e5058a4 100644 --- a/src/views/Synthesis/LeftMenu.vue +++ b/src/views/Synthesis/LeftMenu.vue @@ -1171,6 +1171,12 @@ 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"; @@ -1179,6 +1185,7 @@ PDelevationTool.type = "none"; } PDelevationTool.render(); +debugger break; case "d3": //璺緞鍒嗘瀽 @@ -1298,34 +1305,39 @@ } 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; @@ -1794,6 +1806,7 @@ .menu_Box { width: 100%; height: 100%; + margin: 0; padding: 0; overflow-y: auto; -- Gitblit v1.9.3