From aafecc42b340f4d27e715d639e5b92bb6d482354 Mon Sep 17 00:00:00 2001 From: TreeWish <1131093754@qq.com> Date: 星期三, 22 二月 2023 10:50:16 +0800 Subject: [PATCH] Merge branch 'master' of http://103.85.165.99:8989/r/LFWEB_NEW --- src/views/Synthesis/LeftMenu.vue | 58 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue index 014388a..6a322a5 100644 --- a/src/views/Synthesis/LeftMenu.vue +++ b/src/views/Synthesis/LeftMenu.vue @@ -35,6 +35,7 @@ </template> <script> + import { transform } from 'ol/proj'; import mapinfo from '../Tools/mapinfo.vue'; import maplayer from '../Tools/maplayer.vue'; @@ -410,7 +411,6 @@ methods: { //浜岀礆鑿滃崟鐐瑰嚮鍒囨崲 setChangeTwoMenu(res) { - this.$store.state.mapMenuBoolean = false; this.$store.state.mapMenuBoxFlag = null; this.$store.state.mapPopBoolean = false; @@ -446,6 +446,9 @@ this.showTwoMenuFlag = res.id; switch (val) { + + + case 'a': //鍥惧眰绠$悊 this.setCoverage(res.id); @@ -1110,12 +1113,14 @@ break; case 'd2': that.isslopeFlag = !that.isslopeFlag; + window.PDelevationTool= new SmartEarth.ElevationTool(sgworld);//鍏ㄥ眬鍙橀噺 if (that.isslopeFlag == true) { - elevationTool.type = 'slope'; + PDelevationTool.type = 'slope'; + PDelevationTool.tf = this.checked; } else { - elevationTool.type = 'none'; + PDelevationTool.type = 'none'; } - elevationTool.render(); + PDelevationTool.render(); break; case 'd3': var value = { @@ -1198,28 +1203,23 @@ } break; case 'd10': - if (window.TerrainFlattening) { - window.TerrainFlattening.remove(); - window.TerrainFlattening = null; - } else { - sgworld.Creator.createSimpleGraphic( - 'polygon', - { - clampToGround: true, - }, - function (entity) { - var positions = entity.polygon.hierarchy.getValue().positions; - sgworld.Creator.SimpleGraphic.remove(entity.id); - window.TerrainFlattening = - sgworld.Creator.createTerrainModifier( - '鍦板舰鍘嬪钩', - positions, - 10, - {} - ); - } - ); + + if(window.DXTerrainFlattening!=null){ + DXTerrainFlattening.remove(); } + sgworld.Creator.createSimpleGraphic( + 'polygon', + { + clampToGround: true, + }, + function (entity) { + let positions = entity.polygon.hierarchy.getValue().positions; + console.log(positions); + sgworld.Creator.SimpleGraphic.remove(entity.id); + + window.DXTerrainFlattening = sgworld.Creator.createTerrainModifier("鍦板舰鍘嬪钩", positions, 10, {}); + } + ); break; case 'd11': @@ -1236,11 +1236,11 @@ break; case "d12": - if (window.Excavation) { - window.Excavation.deleteObject() - window.Excavation = null + if (window.TSExcavation!=null) { + window.TSExcavation.deleteObject() + window.TSExcavation = null } else { - window.Excavation = sgworld.Analysis.createSightLine({ + window.TSExcavation = sgworld.Analysis.createSightLine({ type: "default", }) } -- Gitblit v1.9.3