Merge branch 'master' of http://192.168.0.105:10010/r/school-web
| | |
| | | |
| | | intervallayerNum: 15, |
| | | frislayertHeight: 160, // 默认高度 |
| | | useSuofang: true, //是否缩放 |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | // const usMun = that.forlayerNum ? that.forlayerNum : that.threelayerNum; |
| | | const usMun = that.sixlayerNum; |
| | | if (window.height1s > usMun && isSet) { |
| | | if (that.useSuofang) { |
| | | return; |
| | | } |
| | | window.conBack(usMun); |
| | | } |
| | | }); |
| | |
| | | }; |
| | | window.butbut = function () { |
| | | // return; |
| | | if (that.useSuofang) { |
| | | return; |
| | | } |
| | | // 放大 |
| | | document.querySelector(".dc-zoom-controller").children[0].onclick = |
| | | function () { |
| | |
| | | }; |
| | | 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( |
| | |
| | | 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") { |
| | |
| | | window.wallLayer.show = false // 打开瀑布 |
| | | window.startPointFn() // 移动默认视角 |
| | | window.areaLayer.show = true // 绿布 |
| | | if (state.zoomRange[2]) { |
| | | // 2.5D视角限制 |
| | | // global.viewer.scene.screenSpaceCameraController.minimumZoomDistance = 50 |
| | | // // 最大 |
| | | // global.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 9999999999 |
| | | } else { |
| | | // 2.5D视角限制 |
| | | global.viewer.scene.screenSpaceCameraController.minimumZoomDistance = state.zoomRange[0] |
| | | // 最大 |
| | | global.viewer.scene.screenSpaceCameraController.maximumZoomDistance = state.zoomRange[1] |
| | | } |
| | | // 设置相机缩小时的速率 |
| | | global.viewer.scene.screenSpaceCameraController._minimumZoomRate = 2000 |
| | | // 设置相机放大时的速率 |