From 2648e9402730adb91128708948b39614f15fc799 Mon Sep 17 00:00:00 2001 From: gaozl Date: Mon, 20 Mar 2023 10:08:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B1=8F=E4=BF=9D=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/qm/MainMap_QM.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/public/static/qm/MainMap_QM.js b/public/static/qm/MainMap_QM.js index 70d8b40..ac7b7ea 100644 --- a/public/static/qm/MainMap_QM.js +++ b/public/static/qm/MainMap_QM.js @@ -1124,7 +1124,7 @@ MainMap_QM = function (callBack, options) { this.cameraPerspective.position.set(this.util.guiOptions.cameraX, this.util.guiOptions.cameraY, this.util.guiOptions.cameraZ); //x 水平 y 垂直旋转 z 展示大小 this.cameraPerspective.lookAt(new THREE.Vector3(0, 0, 0)); - this.cameraOrtho = new THREE.OrthographicCamera(340 * this.aspect / - 2, 340 * this.aspect / 2, 340 / 2, 340 / - 2, 10, 10000); + this.cameraOrtho = new THREE.OrthographicCamera(-150 * this.aspect, 150 * this.aspect, 150, -150, 10, 10000); this.cameraOrtho.position.set(this.util.guiOptions.cameraX, this.util.guiOptions.cameraY, this.util.guiOptions.cameraZ); this.cameraOrtho.lookAt(new THREE.Vector3(0, 0, 0)); this.camera = this.cameraPerspective; @@ -1947,7 +1947,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.5); + Map_QM.controls.setZoom(1.2); Map_QM.camera.updateProjectionMatrix(); //必须update Map_QM.controls.maxPolarAngle = 0; Map_QM.changeIconState(state); @@ -4586,10 +4586,8 @@ MainMap_QM.prototype = { Map_QM.aspect = width / height; Map_QM.cameraPerspective.aspect = Map_QM.aspect; Map_QM.cameraPerspective.updateProjectionMatrix(); - Map_QM.cameraOrtho.left = 340 * Map_QM.aspect / -2; - Map_QM.cameraOrtho.right = 340 * Map_QM.aspect / 2; - Map_QM.cameraOrtho.top = 340 / 2; - Map_QM.cameraOrtho.bottom = 340 / -2; + Map_QM.cameraOrtho.left = -150* Map_QM.aspect; + Map_QM.cameraOrtho.right = 150* Map_QM.aspect; Map_QM.cameraOrtho.updateProjectionMatrix(); Map_QM.renderer.setSize(width, height); Map_QM.labelRenderer.setSize(width, height);