| | |
| | | window.wallLayer.show = false // 打开瀑布 |
| | | window.startPointFn() // 移动默认视角 |
| | | window.areaLayer.show = true // 绿布 |
| | | // if (state.zoomRange[3]) { |
| | | // global.viewer.imageryLayers.addImageryProvider(new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({ |
| | | // url: '/fz/{z}/{x}/{y}.png', |
| | | // fileExtension: 'png' |
| | | // // minimumLevel: 19 |
| | | // })) |
| | | // // global.viewer.imageryLayers.addImageryProvider( |
| | | // // new global.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | // // url: "http://arcgis.jxpskj.com:6080/arcgis/rest/services/FZ25DMap/MapServer/WMTS", |
| | | // // layer: "fzsw2019", |
| | | // // style: "default", |
| | | // // tileMatrixSetID: "default028mm", |
| | | // // format: "image/jpgpng", |
| | | // // tilingScheme: new global.DC.Namespace.Cesium.GeographicTilingScheme(), |
| | | // // maximumLevel: 19, |
| | | // // tileMatrixLabels: [ |
| | | // // "0", |
| | | // // "1", |
| | | // // "2", |
| | | // // "3", |
| | | // // "4", |
| | | // // "5", |
| | | // // "6", |
| | | // // "7", |
| | | // // "8", |
| | | // // "9", |
| | | // // "10", |
| | | // // "11", |
| | | // // "12", |
| | | // // "13", |
| | | // // "14", |
| | | // // "15", |
| | | // // "16", |
| | | // // "17", |
| | | // // "18", |
| | | // // "19", |
| | | // // ], |
| | | // // }) |
| | | // // ); |
| | | // // 2.5D视角限制 |
| | | // // global.viewer.scene.screenSpaceCameraController.minimumZoomDistance = 50 |
| | | // // // 最大 |
| | | // // global.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 9999999999 |
| | | // } else { |
| | | // } |
| | | if (state.zoomRange[3]) { |
| | | global.viewer.imageryLayers.addImageryProvider(new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({ |
| | | url: '/fz/{z}/{x}/{y}.png', |
| | | fileExtension: 'png' |
| | | // minimumLevel: 19 |
| | | })) |
| | | // global.viewer.imageryLayers.addImageryProvider( |
| | | // new global.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | // url: "http://arcgis.jxpskj.com:6080/arcgis/rest/services/FZ25DMap/MapServer/WMTS", |
| | | // layer: "fzsw2019", |
| | | // style: "default", |
| | | // tileMatrixSetID: "default028mm", |
| | | // format: "image/jpgpng", |
| | | // tilingScheme: new global.DC.Namespace.Cesium.GeographicTilingScheme(), |
| | | // maximumLevel: 19, |
| | | // tileMatrixLabels: [ |
| | | // "0", |
| | | // "1", |
| | | // "2", |
| | | // "3", |
| | | // "4", |
| | | // "5", |
| | | // "6", |
| | | // "7", |
| | | // "8", |
| | | // "9", |
| | | // "10", |
| | | // "11", |
| | | // "12", |
| | | // "13", |
| | | // "14", |
| | | // "15", |
| | | // "16", |
| | | // "17", |
| | | // "18", |
| | | // "19", |
| | | // ], |
| | | // }) |
| | | // ); |
| | | // 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] |
| | | // 最大 |