mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Map Jumps on setFreeCameraOptions if altitude changes from above ~10k to below

Open tobias-r opened this issue 1 year ago • 2 comments
trafficstars

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!

tobias-r avatar Aug 17 '24 07:08 tobias-r

Any news on this? freeCameraOptions are not usable for zoom-ins from globe this way!

tobias-r avatar Sep 20 '24 06:09 tobias-r

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.

underoot avatar Sep 25 '24 07:09 underoot