You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiongetcameraPosInfo(){// 获取 相机姿态信息consthead=viewer.scene.camera.headingconstpitch=viewer.scene.camera.pitchconstroll=viewer.scene.camera.rollconstinfo={'head': head,'pitch': pitch,'roll': roll};// 获取位置 wgs84的地心坐标系,x,y坐标值以弧度来表示constposition=viewer.scene.camera.positionCartographic//with longitude and latitude expressed in radians and height in meters.// 弧度转经纬度constlongitude=Cesium.Math.toDegrees(position.longitude).toFixed(6)constlatitude=Cesium.Math.toDegrees(position.latitude).toFixed(6)constheight=position.heightconsole.log({lng: longitude,lat:latitude,h:height,mat:info})}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: