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

Closed
DDDgfx opened this issue May 7, 2024 · 1 comment
Closed

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

DDDgfx opened this issue May 7, 2024 · 1 comment

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.

@stepankuzmin
Copy link
Contributor

Hi @DDDgfx,

We've improved the fitBounds in the latest v3.7.0-beta.1 release.

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