From eea0af2e6491549ef5b1b0044189a9c055b28f75 Mon Sep 17 00:00:00 2001 From: TreeWish <1131093754@qq.com> Date: 星期一, 27 二月 2023 19:19:16 +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..29729e9 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(); + 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