Merge branch 'master' of http://106.120.22.35:48888/r/PM20221203225_MobileWeb
| | |
| | | |
| | | // 设置相机 |
| | | if (result.name == "二维地图") { |
| | | window.Viewer.scene.globe.maximumScreenSpaceError = 4/3; |
| | | this.changeLayerView(25000, false); |
| | | } else if (result.name == "影像地图") { |
| | | window.Viewer.scene.globe.maximumScreenSpaceError = 4/3; |
| | | this.changeLayerView(50000, false); |
| | | } |
| | | // 切换图层 |
| | |
| | | handleSMapClick(result, index) { |
| | | // 设置相机 |
| | | if (result.name == "3D城市") { |
| | | window.Viewer.scene.globe.maximumScreenSpaceError = 2; |
| | | this.changeLayerView(45000, true); |
| | | } else if (result.name == "三维模型") { |
| | | window.Viewer.scene.globe.maximumScreenSpaceError = 2; |
| | | this.changeLayerView(80000, true); |
| | | } |
| | | // 切换图层 |
| | |
| | | ); |
| | | window.Viewer = sgworld._Viewer; |
| | | Viewer.shadows = false; |
| | | viewer.scene.fxaa = false; |
| | | viewer.scene.postProcessStages.fxaa.enabled = false; |
| | | window.Viewer.scene.globe.maximumScreenSpaceError = 4/3; |
| | | that.showBottom(); |
| | | window.Viewer.scene.screenSpaceCameraController.minimumZoomDistance = 100; //相机的高度的最小值 |
| | | // window.Viewer.scene.screenSpaceCameraController.maximumZoomDistance = 38000; //相机高度的最大值 |
| | |
| | | level: treeNode.Level, |
| | | minimumLevel: treeNode.minimumLevel, |
| | | maximumLevel: treeNode.maximumLevel, |
| | | minificationFilter:Cesium.TextureMinificationFilter.NEAREST_MIPMAP_LINEAR, |
| | | magnificationFilter:Cesium.TextureMinificationFilter.NEAREST_MIPMAP_LINEAR, |
| | | tilingScheme: |
| | | treeNode.tileType === "Geo" |
| | | ? new Cesium.GeographicTilingScheme() |