From 7919b75636eaac4d3384a19d2db67df8a56b98cf Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Fri, 25 Mar 2022 16:39:54 +0800
Subject: [PATCH] +屏蔽缩放
---
src/components/mobilemap/index.vue | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/components/mobilemap/index.vue b/src/components/mobilemap/index.vue
index 405a808..0546968 100644
--- a/src/components/mobilemap/index.vue
+++ b/src/components/mobilemap/index.vue
@@ -134,6 +134,7 @@
intervallayerNum: 15,
frislayertHeight: 160, // 默认高度
+ useSuofang: true, //是否缩放
};
},
computed: {
@@ -296,6 +297,9 @@
// const usMun = that.forlayerNum ? that.forlayerNum : that.threelayerNum;
const usMun = that.sixlayerNum;
if (window.height1s > usMun && isSet) {
+ if (that.useSuofang) {
+ return;
+ }
window.conBack(usMun);
}
});
@@ -321,6 +325,9 @@
};
window.butbut = function () {
// return;
+ if (that.useSuofang) {
+ return;
+ }
// 放大
document.querySelector(".dc-zoom-controller").children[0].onclick =
function () {
@@ -472,6 +479,9 @@
};
var isCameraTime = null;
global.viewer.on(global.DC.SceneEventType.CAMERA_CHANGED, (e) => {
+ if (that.useSuofang) {
+ return;
+ }
if (that.dimension == "2.5D") {
// console.log(e);
window.height4s = Math.ceil(
@@ -1050,6 +1060,7 @@
that.onelayerNum,
// that.forlayerNum ? that.forlayerNum : that.threelayerNum,
that.sixlayerNum,
+ that.useSuofang,
]); // 送入移动端缩放范围
that.$store.commit("MSET_DIMENSION", "2.5D"); // 切换2.5D设置
} else if (that.dimension == "3D") {
--
Gitblit v1.9.3