From 9f51306b10520a2be30bedfe1b34c288cf770f43 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期四, 19 十月 2023 17:51:30 +0800 Subject: [PATCH] 坡度坡向功能新增,临时图层添加定位。空间查询功能优化; --- src/assets/js/Map/menuTool.js | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/assets/js/Map/menuTool.js b/src/assets/js/Map/menuTool.js index 77671cd..65c3031 100644 --- a/src/assets/js/Map/menuTool.js +++ b/src/assets/js/Map/menuTool.js @@ -136,8 +136,11 @@ window.material = null; globe.material = null; Viewer.scene.globe.enableLighting = false; + store.state.slopeQueyFlag = false; + store.state.showSlopeQuey = false; return; } + store.state.slopeQueyFlag = true; window.material = new Cesium.Material({ fabric: { type: "ElevationRamp", @@ -159,6 +162,9 @@ if (window.material) { window.material = null; globe.material = null; + store.state.slopeQueyFla = false + store.state.slopeQueyFlag = false; + store.state.showSlopeQuey = false; return; } @@ -625,7 +631,8 @@ window.material = null; globe.material = null; Viewer.scene.globe.enableLighting = false; - return; + store.state.slopeQueyFlag = false; + store.state.showSlopeQuey = false; } if (window.DoubleScreen) { window.DoubleScreen && window.DoubleScreen.destroy(); @@ -695,7 +702,7 @@ offset: { heading: Cesium.Math.toRadians(0.0), pitch: Cesium.Math.toRadians(-90), - range: 0 + range: 40 } } ); @@ -753,7 +760,7 @@ }, }) - window.Viewer.flyTo(locationPolygonEntity, { + window.Viewer.flyTo(polyline, { offset: { heading: Cesium.Math.toRadians(0.0), pitch: Cesium.Math.toRadians(-90), -- Gitblit v1.9.3