From 8739df8c235b3c36df0b47ddc20a691dadc7bb4f Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 09 Feb 2026 15:58:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 applications/drone-command/src/components/map-container/common-cesium-map.vue |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/applications/drone-command/src/components/map-container/common-cesium-map.vue b/applications/drone-command/src/components/map-container/common-cesium-map.vue
index 5a93db0..33b95c8 100644
--- a/applications/drone-command/src/components/map-container/common-cesium-map.vue
+++ b/applications/drone-command/src/components/map-container/common-cesium-map.vue
@@ -203,7 +203,20 @@
 const getViewer = () => viewer
 const getPublicCesium = () => viewInstance
 
-defineExpose({ getMap, getViewer, getPublicCesium, setAdminBoundaryVisible, zoomToAdminBoundary })
+const flyToPoint = (options) => {
+	const { longitude, latitude, height } = options.position
+
+	viewer.camera.setView({
+		destination: Cesium.Cartesian3.fromDegrees(longitude, latitude, height),
+		orientation: {
+			heading: Cesium.Math.toRadians(0), // 方向
+			pitch: Cesium.Math.toRadians(-90), // 仰角
+			roll: Cesium.Math.toRadians(0) // 翻滚角
+		}
+	})
+}
+
+defineExpose({ getMap, getViewer, getPublicCesium, flyToPoint, setAdminBoundaryVisible, zoomToAdminBoundary })
 </script>
 
 <style scoped lang="scss">

--
Gitblit v1.9.3