| | |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }, 2400) |
| | | // }, 1000) |
| | | that.titlesetLayerFlag = true |
| | | |
| | | that.viewer.camera.setView({ |
| | |
| | | // 最小 |
| | | that.viewer.scene.screenSpaceCameraController.minimumZoomDistance = 200 |
| | | // 最大 |
| | | that.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 2400 |
| | | that.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 1000 |
| | | |
| | | // 设置相机缩小时的速率 |
| | | // that.viewer.scene.screenSpaceCameraController._minimumZoomRate = 24000 |
| | | // that.viewer.scene.screenSpaceCameraController._minimumZoomRate = 10000 |
| | | // 设置相机放大时的速率 |
| | | that.viewer.scene.screenSpaceCameraController._maximumZoomRate = 5906376272000 |
| | | // 视角平移 |
| | |
| | | // 最小 |
| | | that.viewer.scene.screenSpaceCameraController.minimumZoomDistance = 200 |
| | | // 最大 |
| | | that.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 2400 |
| | | that.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 1000 |
| | | // 视角旋转 |
| | | that.viewer.scene.screenSpaceCameraController.enableTilt = false |
| | | } |
| | |
| | | } |
| | | }) |
| | | }; |
| | | if (height > 2400) { |
| | | if (height > 1000) { |
| | | that.viewer.camera.setView({ |
| | | destination: that.DC.Namespace.Cesium.Cartesian3.fromRadians(that.viewer.camera.positionCartographic.longitude, that.viewer.camera.positionCartographic.latitude, 2400), |
| | | destination: that.DC.Namespace.Cesium.Cartesian3.fromRadians(that.viewer.camera.positionCartographic.longitude, that.viewer.camera.positionCartographic.latitude, 1000), |
| | | orientation: { |
| | | // 指向 |
| | | heading: that.DC.Namespace.Cesium.Math.toRadians(0, 0), |