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

add_reset_control() doesn't honor bounds of initial map #52

Open
walkerke opened this issue Oct 7, 2024 · 1 comment
Open

add_reset_control() doesn't honor bounds of initial map #52

walkerke opened this issue Oct 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@walkerke
Copy link
Owner

walkerke commented Oct 7, 2024

Similar to #49; figure out how to fix

@CIOData
Copy link

CIOData commented Oct 8, 2024

Just as a note (in case you hadn't noticed), add_reset_control() does honor center and zoom. Looking at the documentation, it seems like bounds is an alternative that overrides center and zoom for map creation, and if a map is not given center and zoom then it defaults to [0,0] and 0, respectively. You may need to return the center and zoom of the original map and have it approximate returning to the original bounds with those.

@walkerke walkerke added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants