From 039679bf092a8a6cb1f8c921c8a2cfa5306dcf73 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 26 Feb 2026 14:25:02 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/jagzwxm/ja_web
---
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