I’ve seen this question asked several times before on this list, and haven’t found an answer.
How do move the camera to a position above a certain lat/long, but look at some other (nearby) lat/long?
I can use:
viewer.camera.flyTo({
destination: Cesium.Ellipsoid.WGS84.cartographicToCartesian(new Cesium.Cartographic(longitude, latitude, height));
})
``
but no matter what I put in for the orientation parameter, the camera seems to rotate inexplicably.
Alternatively (?) I thought I could use:
var offsetVector = new Cesium.Cartesian3(0.0, 0.0, 0.0);
viewer.lookAt(
Cesium.Cartesian3.fromDegrees(longitudeDegrees, latitudeDegrees), offSetVector
);
``
but how would one reasonably calculate the offset vector?
Am I missing something simple?