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

FitBounds done not function with projections other than Mercator. #13170

Open
DDDgfx opened this issue May 7, 2024 · 0 comments
Open

FitBounds done not function with projections other than Mercator. #13170

DDDgfx opened this issue May 7, 2024 · 0 comments

Comments

@DDDgfx
Copy link

DDDgfx commented May 7, 2024

mapbox-gl-js version: 3^

browser: Chrome

Steps to Trigger Behavior

  1. Call fitBounds via js.
  2. A flyTo is initiated that drives the camera to northwest infinity above Alaska.
  3. Switch the style to mercator projection and behavior is normal.
    1. No errors are thrown.

Link to Demonstration

https://jsbin.com/

Expected Behavior

fitBounds acts as expected

Actual Behavior

fitBounds flys to northwest infinity.

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