| | |
| | | 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) |
| | | } |
| | | |
| | | }; |