From 7c55464ad98984e50201bdd43ecda7de93082ecd Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 27 Dec 2021 09:49:04 +0800
Subject: [PATCH] +主图
---
src/store/modules/mobile.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index dd9a9c0..6ee208b 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -210,6 +210,11 @@
},
duration: 1.6, //定位的时间间隔
complete: () => {//完成后的回调
+ if (data.fn) {//自定义回调
+ setTimeout(() => {
+ data.fn()
+ }, 500);
+ }
if (!data.noOpen) {
setTimeout(() => {
// dispatch("MSET_POINTDATA", data.lntLat);//传入标记点
@@ -275,6 +280,11 @@
state.pointLayer.addOverlay(billboard); //实景
// commit("MSET_OPENPOINTEL", true);
},
+ MSET_LOCKPERSPECTIVEL({ state, commit, dispatch }, val) {
+ //锁定
+ state.mviewer.camera.lookAtTransform(global.DC.Namespace.Cesium.Matrix4.IDENTITY)
+ // console.log(global.DC.Namespace.Cesium.Matrix4.IDENTITY)
+ }
}
}
--
Gitblit v1.9.3