After updating to Cesium 1.8 from a older version (1.6 I think), we had to change many camera calls (lookat mostly I think).
However the problem is that it seems calling camera.lookAt() now seems to change the mouse behavior?
For example, I want to set the camera initial position at our app start up.
Check the following code:
var center = Cesium.Cartesian3.fromDegrees(-9.1365, 38.7075); var heading = Cesium.Math.toRadians(0.0); var pitch = Cesium.Math.toRadians(-20.0); var range = 10000000.0; camera.lookAt(center, new Cesium.HeadingPitchRange(heading, pitch, range));
Having this code at the app startup does change the camera position, but also it seems it locks the mouse rotation of the globe around some fixed point?
If comment this code, clicking the right button and dragging it allows to rotate the globe (and the position where I click matters). Of course, the camera appears at a default zoomed out position.
Anyway, if I let this code run, it will lock the globe rotation, and from that point on, it is not longer possible to navigate the globe at all, just rotate around this point…
Is this the intended behavior?
If yes, please update the documentation better and suggest what other method I should use that does not cause this weird behavior, because I just want to change the camera position, and this is doing something else.