From 3e9cd0d3d92e18de9ec1a33da835e2e9787cbd93 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期三, 24 一月 2024 17:44:26 +0800
Subject: [PATCH] 更新

---
 src/components/sideMenu/layerMenu/layerPanel.vue |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/components/sideMenu/layerMenu/layerPanel.vue b/src/components/sideMenu/layerMenu/layerPanel.vue
index 014d927..cc072ad 100644
--- a/src/components/sideMenu/layerMenu/layerPanel.vue
+++ b/src/components/sideMenu/layerMenu/layerPanel.vue
@@ -304,6 +304,24 @@
     },
     // 浜岀淮搴曞浘閫夋嫨
     handleEMapClick(result, index) {
+      let p = sgworld.Navigate.getCameraInfo();
+      let pitch ;
+      if (pitch !== -90) {
+        pitch = -90;
+        sgworld.Navigate.flyToPointsInterest({
+          destination: new Cesium.Cartesian3.fromDegrees(
+            p.location.lon,
+            p.location.lat,
+            p.location.height
+          ),
+          orientation: {
+            heading: Cesium.Math.toRadians(0),
+            pitch: Cesium.Math.toRadians(pitch),
+            roll: Cesium.Math.toRadians(0),
+          },
+        });
+      }
+
       // 璁剧疆鐩告満
       if (result.name == "浜岀淮鍦板浘") {
         this.changeLayerView(25000, false);

--
Gitblit v1.9.3