1. A concise explanation of the problem you're experiencing.
Hi, i am trying to setView according to klv data.
please see code below.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
var alt = (klvdata.sensor_true_altitude.value + klvdata.frame_center_elevation.value) / 3.28084;
viewer.camera.frustum.fov = Cesium.Math.toRadians(klvdata.sensor_horizontal_fov.value);
viewer.camera.frustum.aspectRatio =klvdata.sensor_horizontal_fov.value / klvdata.sensor_vertical_fov.value;
viewer.camera.setView(
{
destination:
Cesium.Cartesian3.fromDegrees(
klvdata.sensor_longitude.value, klvdata.sensor_latitude.value, alt),
orientation: {
heading: Cesium.Math.toRadians(
klvdata.sensor_relative_azimuth_angle.value +
klvdata.platform_heading_angle.value),
pitch: Cesium.Math.toRadians(
klvdata.sensor_relative_elevation_angle.value +
klvdata.platform_pitch_angle.value),
roll:
Cesium.Math.toRadians(
klvdata.sensor_relative_roll_angle.value +
klvdata.platform_roll_angle.value)
}
});
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
i am extracting klv data from a video ts file.
trying to set the view to get the map image to look exactly like the video frame in order to display vmties on it so i could overlap a transparent map on top of the video and display only the vmties.
4. The Cesium version you're using, your operating system and browser.
Cesium 1.55, Chrome, Windows 10.