From 19642a52a6cc307a8e25795977140abeba2cbad9 Mon Sep 17 00:00:00 2001 From: gaozl Date: Mon, 27 Mar 2023 19:07:40 +0800 Subject: [PATCH] fix: ci --- public/static/qm/MainMap_QM.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/static/qm/MainMap_QM.js b/public/static/qm/MainMap_QM.js index dc1f585..e07ea08 100644 --- a/public/static/qm/MainMap_QM.js +++ b/public/static/qm/MainMap_QM.js @@ -61,6 +61,7 @@ QMUtil = function () { g_col: "#ffffff", a_int: 0.85 }; + this.m_zoom = 1.2; this._clock = new THREE.Clock(); this._indexPathFloor = 0; // 遍历途径数据 this.changeDist = { inner: 350, outner: 900 }; //室内外切换的极限值, 如果 inner小于minDis 则不支持缩放切换 @@ -1419,7 +1420,7 @@ MainMap_QM.prototype = { this.util.guiOptions.targatZ = this.util.allMap[this.util.selectBuild].m_site.split(",")[2] || 0; } if(this.util.allMap[this.util.selectBuild].m_zoom){ - this.util.sceneGap.scale = this.util.allMap[this.util.selectBuild].m_zoom; + this.util.m_zoom = this.util.allMap[this.util.selectBuild].m_zoom; } } let { playSpeed = 6, collision = true, showStyle = false, modelIcon = true, shopStyle = "shopName", shadow = true, otherPath = [], navColor = 0xEE6A50, iconUrl = [], overlap = false, iconName = false, camZoom = 3, inArea = false, pathColor = 0xb47834, pathStyle = "3D" } = options; @@ -1965,7 +1966,7 @@ MainMap_QM.prototype = { Map_QM.camera = Map_QM.cameraOrtho; Map_QM.controls.object = Map_QM.camera; Map_QM.shawLight.castShadow = false; - Map_QM.controls.setZoom(1.2); + Map_QM.controls.setZoom(Map_QM.util.m_zoom); Map_QM.camera.updateProjectionMatrix(); //必须update Map_QM.controls.maxPolarAngle = 0; Map_QM.changeIconState(state);