I’m faced with a problem. I can save a camera view recangle. Some time later I want to fly saved rectangle. But I want to look this rectangle with recorded camera position, heading pitch value
I have a solution. I saved this heading and pitch value When recording view rectangle. And in flyToMethod complete property called lookAt function for look from camera with recorded heading ,pitch transform values. But this solution not enough for me .Because firstly camera look above and suddenly look with an angle As a result this cause a ugly animation.
Can I solve this problem with Cesiım flyTo method or anything else?
Here is an example for saving and loading a camera view:
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var camera = viewer.scene.camera;
var position;
var orientation = {
heading: 0,
pitch: 0,
roll: 0
};