From 561e2e7598e34bc17ad72a659829dc78b706f99b Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 04 Nov 2024 19:24:44 +0800
Subject: [PATCH] 首页显示调整

---
 src/hooks/initMap.js |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/hooks/initMap.js b/src/hooks/initMap.js
index fbcc970..2675406 100644
--- a/src/hooks/initMap.js
+++ b/src/hooks/initMap.js
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2024-10-25 15:09:55
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-31 18:27:53
+ * @LastEditTime: 2024-11-04 18:08:12
  * @FilePath: \bigScreen\src\hooks\initMap.js
  * @Description: 
  * 
@@ -29,10 +29,20 @@
         viewer = new DC.Viewer('viewer-container')
 
         const global = appContext.config.globalProperties
-
         global.$viewer = viewer
 
-        store.setLoadMap(true)
+        global.$viewer.zoomToPosition(new DC.Position(
+          115.1048036679409,
+          27.276835758787513,
+          4000,
+          0,
+          -90,
+          0
+        ), () => {
+
+
+          store.setLoadMap(true)
+        })
       })
     })
   }

--
Gitblit v1.9.3