From aeeed9f7f746c16055e3eb6854535f6f0888ca97 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 04 Jan 2022 17:00:38 +0800
Subject: [PATCH] +地球自转飞入--默认是3d的话

---
 src/components/mobilemap/index.vue |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/src/components/mobilemap/index.vue b/src/components/mobilemap/index.vue
index 5fc0e3d..d586eaa 100644
--- a/src/components/mobilemap/index.vue
+++ b/src/components/mobilemap/index.vue
@@ -627,7 +627,30 @@
       if (that.dimension == "2.5D") {
         that.$store.commit("MSET_DIMENSION", "2.5D"); //切换2.5D设置
       } else if (that.dimension == "3D") {
-        that.$store.commit("MSET_DIMENSION", "3D"); //切换3D设置
+        setTimeout((res) => {
+          that.$store.dispatch("mapFlyTo", {
+            lntLat: [111.25036579, 34.83767277, 11443175.85],
+            heading: 0,
+            pitch: -90,
+            roll: 0,
+            noOpen: true,
+            fn: function () {
+              // viewer.flyTo(tileset);
+              // viewer.flyTo(provider);
+              //飞入起始点
+              // that.$store.dispatch("mapFlyTo", {
+              //   lntLat: [115.87186406, 28.74449337, 1200],
+              //   heading: 0,
+              //   pitch: -45,
+              //   roll: 0,
+              //   noOpen: true,
+              // });
+
+              // startPoint();
+              that.$store.commit("MSET_DIMENSION", "3D"); //切换3D设置
+            },
+          });
+        }, 2000);
       }
       if (false) {
         //镜头改变示例

--
Gitblit v1.9.3