| | |
| | | //页面初始化 |
| | | this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", { |
| | | StaticFileBaseUrl: config.StaticFileBaseUrl, |
| | | ellipsoidCoordinates: 'MOON' |
| | | }); |
| | | // this.earthCtrl.environment.disableAllEffect(); |
| | | this.earthCtrl.environment.disableAllEffect(); |
| | | |
| | | this.Viewer = this.earthCtrl._Viewer; |
| | | |
| | |
| | | |
| | | Viewer.imageryLayers.removeAll(); |
| | | |
| | | Viewer.scene.globe.showGroundAtmosphere = false; |
| | | // Viewer.scene.globe.showGroundAtmosphere = false; |
| | | |
| | | // let colorAll = { |
| | | // point: Cesium.Color.fromCssColorString("#ff0000"), |
| | | // polyline: Cesium.Color.fromCssColorString("#ffff0050"), |
| | | // polygon: Cesium.Color.fromCssColorString("#ffff0050"), |
| | | // }; |
| | | // this.earthCtrl.Analysis.spaceDistance(colorAll, () => {}); |
| | | server.AddWmtesLayer(config.moonWmts); |
| | | |
| | | var terrain = new SmartEarth.Cesium.CesiumTerrainProvider({ |
| | | url: config.moonTerrain, |
| | |
| | | }), |
| | | }); |
| | | Viewer.terrainProvider = terrain; |
| | | Viewer.scene.globe.terrainExaggeration = 5; |
| | | server.AddWmtesLayer(config.moonWmts); |
| | | |
| | | Viewer.scene.globe.terrainExaggeration = 5; |
| | | |
| | | |
| | | // server.AddTmsLayer("http://172.16.2.10:50001/sj_raster/v6/service/10003901/1"); |
| | | |
| | | // server.AddTmsLayer(config.moonTms); |
| | | |