| | |
| | | // }); |
| | | window.Viewer.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees( |
| | | 120.37492388223879, |
| | | 30.91054534935262, |
| | | 97611.15133443385 |
| | | 109.26943037557801, |
| | | 35.94483222064199, |
| | | 7052792.362399457 |
| | | ), |
| | | orientation: { |
| | | heading: 1.249372341578318, |
| | | pitch: -0.7222154573481174, |
| | | heading: 6.166296249767834, |
| | | pitch: -1.564875679684365, |
| | | roll: 0, |
| | | }, |
| | | complete: function callback () { |
| | |
| | | } |
| | | // let str = `级数:${level} 视高:${alt}km 方位角:${heading}° 俯仰角:${pitch}° 翻滚角:${roll}°`; |
| | | console.log(pitch); |
| | | that.showFlyimg=pitch>-25? true:false; |
| | | that.showFlyimg=pitch<-60? true:false; |
| | | // console.log(that.showFlyimg); |
| | | }); |
| | | }, |