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

setting maxBounds on equirectangular projection has different results based on the map container size #13290

Open
pflopez opened this issue Sep 25, 2024 · 1 comment

Comments

@pflopez
Copy link

pflopez commented Sep 25, 2024

mapbox-gl-js version:
v3.6.0

browser:
Chrome

Steps to Trigger Behavior

  1. Set two maps, one with a smaller vertical container than the other. Both maps have the same configuration, using equirectangular projection.
  2. Set the same maxBounds to both maps.
  3. Notice that the maxBounds for the first map and the second map do not behave the same.

Link to Demonstration

https://codepen.io/pflopez/pen/xxvbZdB

Expected Behavior

Both maps should have the same max bounds, regardless of the size of the map container.

Actual Behavior

The max bounds of each map are different.

@pflopez
Copy link
Author

pflopez commented Sep 25, 2024

In a way, related to #12391, as Im trying to manually fix the extraneous empty space issue via setting max bounds.

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