Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tobias-r opened this issue Aug 17, 2024 · 1 comment

Comments

@tobias-r
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant