| | |
| | | 1737400.0, |
| | | 1737400.0 |
| | | ); |
| | | |
| | | //贴地线 |
| | | |
| | | SmartEarth.Cesium.ExternalParameter.changeApproximateTerrainHeights = true; |
| | | //页面初始化 |
| | | this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", { |
| | | StaticFileBaseUrl: "/CIMSDK/", |
| | | StaticFileBaseUrl: config.StaticFileBaseUrl, |
| | | ellipsoidCoordinates: "MOON", |
| | | timeline: true, |
| | | }); |
| | | // this.earthCtrl.environment.disableAllEffect(); |
| | | |
| | | this.Viewer = this.earthCtrl._Viewer; |
| | | this.Viewer.scene.skyAtmosphere.show = false; |
| | | this.Viewer.scene.globe.depthTestAgainstTerrain = true; |
| | | |
| | | window.earthCtrl = this.earthCtrl; |
| | | |
| | | window.Viewer = this.earthCtrl._Viewer; |
| | | |
| | | Viewer.scene.skyAtmosphere.show = false; |
| | | |
| | | window.Cesium = SmartEarth.Cesium; |
| | | // debugger; |
| | | |
| | | Viewer.imageryLayers.removeAll(); |
| | | window.sgworld = earthCtrl; |
| | | |
| | | sgworld.Creator.SimpleGraphic.edit(true, { editProp: true }); |
| | | //======================= |
| | | window.Viewer.imageryLayers.removeAll(); |
| | | Viewer.animation.container.style.visibility = "hidden"; |
| | | Viewer.timeline.container.style.visibility = "hidden"; |
| | | //======================= |
| | | //大气层 |
| | | 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.AddDemLayer("", 12316); |
| | | |
| | | var terrain = new SmartEarth.Cesium.CesiumTerrainProvider({ |
| | | url: config.moonTerrain, |
| | | tilingScheme: new SmartEarth.Cesium.GeographicTilingScheme({ |
| | | ellipsoid: SmartEarth.Cesium.Ellipsoid.MOON, |
| | | }), |
| | | }); |
| | | Viewer.terrainProvider = terrain; |
| | | Viewer.scene.globe.terrainExaggeration = 5; |
| | | server.AddWmtesLayer(config.moonWmts); |
| | | // server.AddTmsLayer( |
| | | // "http://172.16.2.10:50001/sj_raster/v6/service/10003901/1" |
| | | // ); |
| | | |
| | | // var param = { |
| | | // name: labelName, |
| | | // id: earthCtrl.factory.createUUID(), |
| | |
| | | // alt: 10 |
| | | // }; |
| | | // labelEntity = earthCtrl.factory.createLabel(param); |
| | | // server.AddTmsLayer(config.moonTms); |
| | | |
| | | |
| | | server.AddGeoWmsLayer(); |
| | | // server.AddTmsLayer('http://localhost:8080/abc'); |
| | | |
| | | // earthCtrl.camera.flyTo(47.5087, 23.6963, 300, 9.5, -45, 0.0, 5); |