| | |
| | | //页面初始化 |
| | | this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", { |
| | | StaticFileBaseUrl: config.StaticFileBaseUrl, |
| | | ellipsoidCoordinates: "MOON2000", |
| | | ellipsoidCoordinates: 'MOON2000', |
| | | timeline: true, |
| | | }); |
| | | |
| | | this.earthCtrl.Viewer.scene.debugShowFramesPerSecond = true; |
| | | |
| | | this.earthCtrl.Viewer.scene.debugShowFramesPerSecond = true |
| | | this.earthCtrl.coreMap.scene.screenSpaceCameraController.enableCollisionDetection = true; |
| | | this.earthCtrl.Viewer.scene.globe.terrainExaggeration = 1.00001 |
| | | |
| | | |
| | | window.earthCtrl = this.earthCtrl; |
| | | |
| | |
| | | |
| | | sgworld.Creator.SimpleGraphic.edit(true, { editProp: false }); |
| | | //======================= |
| | | // window.Viewer.imageryLayers.removeAll(); |
| | | //设置球体颜色 |
| | | window.Viewer.scene.globe.baseColor = new Cesium.Color.fromCssColorString('#A9A9A9'); |
| | | //清除所有默认图层 |
| | | window.Viewer.imageryLayers.removeAll(); |
| | | window.setLayer(); |
| | | |
| | | Viewer.scene.globe.depthTestAgainstTerrain = false; // 开启深度测试 |
| | |
| | | if (Cesium.defined(cartesian)) { |
| | | |
| | | if (cartesian.id.shpType && cartesian.id.shpType == 'temporaryLayer') { |
| | | |
| | | that.setEditTemporaryLayer() |
| | | } |
| | | |
| | |
| | | setEditTemporaryLayer(res) { |
| | | // store.state.editTemporaryId = res; |
| | | // console.log(store.state.editTemporaryId) |
| | | |
| | | if (store.state.editTemporaryId) { |
| | | |
| | | store.state.setEditTemporaryShow = true; |
| | | } |
| | | }, |