你好, 代码如下:
//坐标
let coord = this.viewer.camera.positionCartographic;
let lon = parseFloat(Cesium.Math.toDegrees(coord.longitude).toFixed(6));
let lat = parseFloat(Cesium.Math.toDegrees(coord.latitude).toFixed(6));
let height = parseFloat(coord.height.toFixed(6));
//视角
let heading = parseFloat(Cesium.Math.toDegrees(this.viewer.camera.heading).toFixed(6));
let pitch = parseFloat(Cesium.Math.toDegrees(this.viewer.camera.pitch).toFixed(6));
let roll= parseFloat(Cesium.Math.toDegrees(this.viewer.camera.roll).toFixed(6));
conosle.log("位置"+[lon,lat,height]);
conosle.log("heading "+heading );
var info = { head: head, pitch: pitch, roll: roll };
conosle.log("视角"+info );