1. A concise explanation of the problem you're experiencing.
When flying between two locations, I'm trying to obtain the longest path. Using the options flyOverLongitude and flyOverLongitudeWeight this behaviour is not simulated. As indicated in the code example below, I'm trying to move the camera from longitude -96 to -90 via longitude -108, but it always selects the shortest path.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
Suppose following to flyTo events:
if(timelineTime.year == "2030"){
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(-96.48,30,17000000.0),
duration : 4}
);
}
if(timelineTime.year == "2034"){
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(-90,30,17000000.0),
flyOverLongitude: Cesium.Math.toRadians(-108.0),
flyOverLongitudeWeight: 1000,
duration : 4}
);
}
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I need to move the camera around the globe in one continuous loop to get an overview.
4. The Cesium version you're using, your operating system and browser.
Cesium: 1.37 and 1.39
MacOS
Firefox, Safari and Google Chrome