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

box zoom should not reset bearing #1225

Closed
jfirebaugh opened this issue May 27, 2015 · 3 comments
Closed

box zoom should not reset bearing #1225

jfirebaugh opened this issue May 27, 2015 · 3 comments

Comments

@jfirebaugh
Copy link
Contributor

Currently the box zoom behavior is to reset the bearing to 0. This means that box zooming doesn't actually zoom to the box if the map was rotated. Instead, it should keep the current bearing.

@1ec5
Copy link
Contributor

1ec5 commented Jul 1, 2015

#1340 tracks a simple fix for this issue. #1338 tracks a fix that would correctly fit to a rotated bounds.

@andrewharvey
Copy link
Collaborator

I presume this would mean that map.fitBounds(map.getBounds()) on a rotated map would retain the map's rotation rather than resetting it to 0.

@lucaswoj
Copy link
Contributor

Merged with #2112

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

5 participants