Skip to content

Restrict possible min/max zoom values #1321

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 2 commits into from
Sep 22, 2023
Merged

Conversation

davidbgk
Copy link
Contributor

Fix #1318

@yohanboniface
Copy link
Member

The absolute max zoom value is a bit tricky to define once and for all. The tilelayer is at the end what will usually define this value for a given map.

20 seems legit, but some custom use cases may want a bit more. Also, we need to also limit the options.overlay.min/maxZoom. So I'd suggest having a map.options.absoluteMaxZoom hard coded, that could be then used where needed and will prepare in case we need to expose that option to users at some point.

@davidbgk davidbgk force-pushed the 1318-restrict-zoom-options branch from ac58c05 to aed9e89 Compare September 22, 2023 16:00
@davidbgk davidbgk force-pushed the 1318-restrict-zoom-options branch from 4220d5e to f6dbb7d Compare September 22, 2023 16:11
@davidbgk davidbgk merged commit 2563357 into master Sep 22, 2023
@davidbgk davidbgk deleted the 1318-restrict-zoom-options branch September 22, 2023 16:13
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.

Don't let people enter insane zoom in overlay
2 participants