| | |
| | | graticules: null, |
| | | //地图初始化 |
| | | init3DMap() { |
| | | SmartEarth.Cesium.ExternalParameter.eliminate = false |
| | | SmartEarth.Cesium.ExternalParameter.changeApproximateTerrainHeights = true |
| | | SmartEarth.Cesium.ExternalParameter.eliminate = false; |
| | | SmartEarth.Cesium.ExternalParameter.changeApproximateTerrainHeights = true; |
| | | SmartEarth.Cesium.ExternalParameter.maxTerrainHeight = 2000000; |
| | | SmartEarth.Cesium.ExternalParameter.minTerrainHeight = -2000000; |
| | | SmartEarth.Cesium.ShadowMap.MAXIMUM_DISTANCE = 20000000000; |
| | | window.Cesium = SmartEarth.Cesium |
| | | SmartEarth.Cesium.Ellipsoid.WGS84 = new SmartEarth.Cesium.Ellipsoid(1737400.0, 1737400.0, 1737400.0) |
| | | |
| | | window.Cesium = SmartEarth.Cesium; |
| | | SmartEarth.Cesium.Ellipsoid.WGS84 = new SmartEarth.Cesium.Ellipsoid( |
| | | 1737400.0, |
| | | 1737400.0, |
| | | 1737400.0 |
| | | ); |
| | | |
| | | //页面初始化 |
| | | this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", { |
| | |
| | | timeline: true, |
| | | }); |
| | | |
| | | this.earthCtrl.Viewer.scene.debugShowFramesPerSecond = true |
| | | this.earthCtrl.Viewer.scene.debugShowFramesPerSecond = true; |
| | | this.earthCtrl.coreMap.scene.screenSpaceCameraController.enableCollisionDetection = true; |
| | | |
| | | window.earthCtrl = this.earthCtrl; |