-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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.flyTo({ center: someCenter, padding: somePadding }) ignores padding #13152
Comments
Im also getting this bug with the new version, any updates on this? |
I just downgraded to v3.1.2 for the time being. |
Thanks for the reports, everyone, investigating... Related to our attempt to fix #11831. |
Hey everyone! This will be fixed in the upcoming GL JS v3.4.0 |
Hey all! Please update the latest GL JS v3.4.0. I'll close this issue, but feel free to reopen if there are any questions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mapbox-gl-js version:
v3.2.0 (works in v3.1.0)
browser:
Mozilla Firefox v124.0.2 (also tested it in Chrome v124.0.6367.61, doesn't work either)
Steps to Trigger Behavior
Link to Demonstration
https://jsbin.com/nefawexopu/edit?html,console,output
Apparently, there is an error sometimes. The behaviour I experience on browser is this one. The red line is the center, the Golden Gate Bridge should be off center by 1000px.
Expected Behavior
I expected there to be padding.
This pull request explains the expected behaviour.
Actual Behavior
There was no padding.
In all versions before v3.2.0 (since v1.9.0) I tested, there is padding, an offset to the center so that maps partly hidden behind some content for example don't also hide the important content of the map.
The text was updated successfully, but these errors were encountered: