Skip to content

Allow changing zoom level without interfering with pan offsets #130

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

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

thomasttvo
Copy link
Collaborator

This modifies zoomTo method to allow zoomCenter to be undefined. Without the zoomCenter, the pan animation that focuses on the supplied zoom center will not be applied, so it will retain the current pan and only changes the zoom level.

@thomasttvo thomasttvo changed the title Allows zooming in without interfering with pan coordinates Allows changing zoom level without interfering with pan coordinates Jan 10, 2025
@thomasttvo thomasttvo changed the title Allows changing zoom level without interfering with pan coordinates Allows changing zoom level without interfering with pan offsets Jan 10, 2025
@thomasttvo thomasttvo changed the title Allows changing zoom level without interfering with pan offsets Allow changing zoom level without interfering with pan offsets Jan 10, 2025
@thomasttvo thomasttvo merged commit b175c42 into master Jan 10, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants