From de0df0227b6de9dd8de31cda71731a81b7da1a49 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 07 Jan 2022 13:39:34 +0800
Subject: [PATCH] +隐藏3d 默认2.5d
---
src/store/modules/mobile.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index db87ade..21d4742 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -30,7 +30,7 @@
},
// 默认起始点函数
startPointFn: "",
- dimension: "3D", // 维度
+ dimension: "2.5D", // 维度
dimensionData: {
// 维度镜头数据
heading: 0,
@@ -114,7 +114,6 @@
//切换2D和2.5D
MSET_DIMENSION(state, data) {
//关闭弹窗
-
//3d,2.5d转换事件
state.dimension = data;
if (data == "3D") {
@@ -163,7 +162,7 @@
state.startPointFn(); //移动默认视角
//2.5D视角限制
- state.mviewer.scene.screenSpaceCameraController.minimumZoomDistance = 500;
+ state.mviewer.scene.screenSpaceCameraController.minimumZoomDistance = 200;
// 最大
state.mviewer.scene.screenSpaceCameraController.maximumZoomDistance = 6000;
// 设置相机缩小时的速率
@@ -221,7 +220,7 @@
} else if (state.dimension == "2.5D") {
Flys = [
+data.lntLat[0] + 0.01197,
- +data.lntLat[1] - 0.0001,
+ +data.lntLat[1] - 0.00055,
// +data.lntLat[1] - 0.0022,
nowHeight,
];
--
Gitblit v1.9.3