From 22eef3376dbf16f2e05c68b9b264dabaf0dacf91 Mon Sep 17 00:00:00 2001 From: Jin Lei <jinlei_182@163.com> Date: 星期三, 24 一月 2024 23:15:52 +0800 Subject: [PATCH] Merge branch 'master' of http://106.120.22.35:48888/r/PM20221203225_MobileWeb --- 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 f4adf38..e57c81a 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 == "浜岀淮鍦板浘") { window.Viewer.scene.globe.maximumScreenSpaceError = 4/3; -- Gitblit v1.9.3