1. A concise explanation of the problem you're experiencing.
I am using using this function to set a inertial view:
// To have an inertial (ICRF) view
function icrf(scene, time) {
var icrfToFixed = Cesium.Transforms.computeIcrfToFixedMatrix(time);
if (Cesium.defined(icrfToFixed)) {
var camera = viewer.camera;
var offset = Cesium.Cartesian3.clone(camera.position);
var transform = Cesium.Matrix4.fromRotationTranslation(icrfToFixed);
camera.lookAtTransform(transform, offset);
}
}
viewer.scene.postUpdate.addEventListener(icrf);
However, this has two bad effects:
* When zooming in, panning is more sensitive and I end up moving too much.
* When switching to 2D View, I get an error saying:
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I prefer to be able to have an inertial view.
4. The Cesium version you're using, your operating system and browser.
Cesium 1.62 (Cesium Sandcastle), Linux Mint 19.2, Firefox 69.0.3.