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 doesnt work on a lambert conformal conic projection #12913

Open
SourceCipher opened this issue Sep 28, 2023 · 0 comments
Open

FitBounds doesnt work on a lambert conformal conic projection #12913

SourceCipher opened this issue Sep 28, 2023 · 0 comments
Labels

Comments

@SourceCipher
Copy link

mapbox-gl-js version:
2.15.0

browser:
Brave Version 1.58.131 Chromium: 117.0.5938.92

Steps to Trigger Behavior

  1. Go to the provided demonstration link
  2. Click anywhere on the map to zoom to features bounds (and it will work fine)
  3. Now uncomment the part with projection next top the map variable
  4. Save the changes and try to click on the map to zoom to a feature again (this will not work and it will zoom to the ocean)

Link to Demonstration

https://codepen.io/gmand/pen/gOZKgxv

Expected Behavior

In any map projections, fit to bounds should work as expected

Actual Behavior

With lambertConformalConic projection, bounds of specified feature zooms in to the ocean

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

No branches or pull requests

2 participants