| | |
| | | fabric: { |
| | | type: "ElevationRamp", |
| | | uniforms: { |
| | | image: config.StaticFileBaseUrl + "/Assets/Images/color.png", |
| | | image: config.StaticFileBaseUrl + "Assets/Images/color.png", |
| | | minimumHeight: -10000, |
| | | maximumHeight: 10000, |
| | | }, |
| | |
| | | } |
| | | this.oldLeftMenuId = res.id; |
| | | |
| | | |
| | | |
| | | switch (res.id) { |
| | | case "l1": |
| | | store.state.isShowMap = true; |
| | | break; |
| | | case "l2": |
| | | store.state.isShowMap = true; |
| | | break; |
| | | case "l3": //在线制图 |
| | | store.state.isShowMap = true; |
| | | this.setThematicMap(); |
| | | break; |
| | | case "l4": |
| | | store.state.isShowMap = true; |
| | | break; |
| | | case "l5": |
| | | store.state.isShowMap = false |
| | | break; |
| | | case "l6": |
| | | store.state.isShowMap = true; |
| | | break; |
| | | } |
| | | }, |
| | |
| | | }, |
| | | //清除方法 |
| | | clearTopTools(id) { |
| | | store.state.doubleMap = false; |
| | | store.state.doubleMenu = false; |
| | | if (earthCtrl.shadows) { |
| | | Viewer.animation.container.style.visibility = "hidden"; |
| | | Viewer.timeline.container.style.visibility = "hidden"; |
| | |
| | | outlineColor: Cesium.Color.DODGERBLUE, |
| | | } |
| | | }); |
| | | window.Viewer.flyTo(locationPolygonEntity, { |
| | | duration: 5, |
| | | offset: new SmartEarth.Cesium.HeadingPitchRange(0.0, SmartEarth.Cesium.Math.toRadians(-20.0)) |
| | | }); |
| | | this.setViewerFlyTo(locationPolygonEntity) |
| | | }, |
| | | setLocationPoint(res, name) { |
| | | const position = window.Viewer.entities.add({ |
| | |
| | | scale: 5.0, |
| | | }, |
| | | }); |
| | | window.Viewer.flyTo(position, { |
| | | duration: 5, |
| | | offset: new SmartEarth.Cesium.HeadingPitchRange(0.0, SmartEarth.Cesium.Math.toRadians(-20.0)) |
| | | |
| | | this.setViewerFlyTo(position) |
| | | }, |
| | | setViewerFlyTo(entity) { |
| | | window.Viewer.flyTo(entity, { |
| | | offset: { |
| | | heading: Cesium.Math.toRadians(0.0), |
| | | pitch: Cesium.Math.toRadians(-45), |
| | | range: 40000 |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | |
| | | setLocationLine(res, name) { |
| | | var position = []; |
| | | |
| | |
| | | |
| | | }, |
| | | }) |
| | | window.Viewer.flyTo(polyline, { |
| | | duration: 5, |
| | | offset: new SmartEarth.Cesium.HeadingPitchRange(0.0, SmartEarth.Cesium.Math.toRadians(-20.0)) |
| | | }); |
| | | this.setViewerFlyTo(polyline) |
| | | } |
| | | |
| | | }; |