mapbox-gl-js
mapbox-gl-js copied to clipboard
Map Jumps on setFreeCameraOptions if altitude changes from above ~10k to below
mapbox-gl-js version: 3.6.0
browser: Chrome newest version on Mac
Steps to Trigger Behavior
I am using your script: https://github.com/mapbox/impact-tools/blob/master/journey-animation-sequence/js/fly-in-and-rotate.js
await flyInAndRotate({
map: map,
targetLngLat: {lng: 11.007019, lat: 46.967396},
duration: 10000,
startAltitude: 7500000,
endAltitude: 10000,
startBearing: 40,
endBearing: 0,
startPitch: 0,
endPitch: 61,
prod: true
});
However, when the altitude crosses the 10.000m line, the map suddenly jumps to a lower altitude. The altitude is calculated correctly (it is after all your own code). I tried roadmap and satellite style, same incorrect behaviour.
Thank you!
Any news on this? freeCameraOptions are not usable for zoom-ins from globe this way!
Hello, @tobias-r! Thank you for the reporting! Currently, the team is busy with other improvements but has your request in the queue for investigation.