| | |
| | | 1737400.0, |
| | | 1737400.0 |
| | | ); |
| | | |
| | | //贴地线 |
| | | |
| | | SmartEarth.Cesium.ExternalParameter.changeApproximateTerrainHeights = true |
| | | //页面初始化 |
| | | this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", { |
| | | licenseServer: "https://cim.smartearth.cn/", |
| | | StaticFileBaseUrl: "/CIMSDK/", |
| | | StaticFileBaseUrl: config.StaticFileBaseUrl, |
| | | ellipsoidCoordinates: "MOON", |
| | | timeline: true |
| | | }); |
| | | // this.earthCtrl.environment.disableAllEffect(); |
| | | |
| | | this.Viewer = this.earthCtrl._Viewer; |
| | | this.Viewer.scene.skyAtmosphere.show = false; |
| | | |
| | | window.earthCtrl = this.earthCtrl; |
| | | |
| | | window.Viewer = this.earthCtrl._Viewer; |
| | | |
| | | Viewer.imageryLayers.removeAll(); |
| | | Viewer.scene.skyAtmosphere.show = false; |
| | | |
| | | window.Cesium = SmartEarth.Cesium; |
| | | |
| | | 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; |
| | | |
| | | // 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(config.moonTms); |
| | | server.AddWmtesLayer(config.moonWmts); |
| | | var terrain = new Cesium.CesiumTerrainProvider({ |
| | | url: config.moonTerrain, |
| | | tilingScheme: new Cesium.GeographicTilingScheme({ |
| | | ellipsoid: Cesium.Ellipsoid.MOON, |
| | | }), |
| | | |
| | | }); |
| | | window.Viewer.terrainProvider = terrain; |
| | | |
| | | // server.AddTmsLayer("http://172.16.2.10:50001/sj_raster/v6/service/10003901/1"); |
| | | |
| | | // server.AddGeoWmsLayer(); |
| | | // var param = { |
| | | // name: labelName, |
| | | // id: earthCtrl.factory.createUUID(), |
| | |
| | | // alt: 10 |
| | | // }; |
| | | // labelEntity = earthCtrl.factory.createLabel(param); |
| | | server.AddTmsLayer(config.moonTms); |
| | | |
| | | // server.AddTmsLayer('http://localhost:8080/abc'); |
| | | |
| | |
| | | // //添加鼠标左击事件 |
| | | // this.addMouseLeftClickEvents(); |
| | | // this.addMouseMouseMoveEvents(); |
| | | |
| | | |
| | | }, |
| | | //鼠标左键点击事件添加 |
| | | addMouseLeftClickEvents() { |