| | |
| | | } |
| | | |
| | | } |
| | | else if (type == 'DDE') { |
| | | else if (type == 'DDE') { |
| | | var lon, lat, alt; |
| | | lon = obj.data.lon; |
| | | lat = obj.data.lat; |
| | | alt = obj.data.altitude; |
| | | console.log(lon,lat,alt); |
| | | let flyPromise = viewer.camera.flyTo({ |
| | | duration: 3, |
| | | destination: Cesium.Cartesian3.fromDegrees(Number(lon), Number(lat), alt), |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(0), //绕垂直于地心的轴旋转 |
| | | pitch: Cesium.Math.toRadians(-90), //绕纬度线旋转 |
| | | roll: Cesium.Math.toRadians(0) //绕经度线旋转 |
| | | }, |
| | | }); |
| | | console.log(lon, lat, alt); |
| | | if (lon != undefined && lat != undefined && alt != undefined) { |
| | | let flyPromise = viewer.camera.flyTo({ |
| | | duration: 3, |
| | | destination: Cesium.Cartesian3.fromDegrees(Number(lon), Number(lat), alt), |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(0), //绕垂直于地心的轴旋转 |
| | | pitch: Cesium.Math.toRadians(-90), //绕纬度线旋转 |
| | | roll: Cesium.Math.toRadians(0) //绕经度线旋转 |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | , oncheck: function (obj) { |