| | |
| | | this.Viewer = this.earthCtrl._Viewer; |
| | | window.earthCtrl = this.earthCtrl; |
| | | window.Viewer = this.earthCtrl._Viewer; |
| | | // //显示fps |
| | | // sgworld._Viewer.scene.debugShowFramesPerSecond = false; |
| | | //添加月球初始化切片服务 |
| | | |
| | | Viewer.imageryLayers.removeAll(); |
| | | |
| | | 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); |
| | | // var param = { |
| | | // name: labelName, |
| | | // id: earthCtrl.factory.createUUID(), |
| | | // text: "文字工具", |
| | | // font: '50pt monospace', |
| | | // outlineWidth: 2, |
| | | // fillColor: SmartEarth.Cesium.Color.RED, |
| | | // lon: 47.5087, |
| | | // lat: 23.6963, |
| | | // alt: 10 |
| | | // }; |
| | | // labelEntity = earthCtrl.factory.createLabel(param); |
| | | server.AddTmsLayer(config.moonTms); |
| | | |
| | | // server.AddTmsLayer('http://localhost:8080/abc'); |
| | | |
| | | // earthCtrl.camera.flyTo(47.5087, 23.6963, 300, 9.5, -45, 0.0, 5); |
| | | |
| | | // //添加鼠标左击事件 |
| | | // this.addMouseLeftClickEvents(); |
| | | // this.addMouseMouseMoveEvents(); |