src/components/sideMenu/layerMenu/layerPanel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/viewer.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/utils/map.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/sideMenu/layerMenu/layerPanel.vue
@@ -306,8 +306,10 @@ handleEMapClick(result, index) { // 设置相机 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); } // 切换图层 @@ -338,8 +340,10 @@ 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); } // 切换图层 src/components/viewer.vue
@@ -168,6 +168,9 @@ ); 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; //相机高度的最大值 src/utils/map.js
@@ -917,6 +917,8 @@ 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()