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

Fix examples ZoomButtonsPluginOption to check min and max properly #1120

Merged
merged 3 commits into from
Jan 29, 2022

Conversation

chriscant
Copy link
Contributor

In this example, when zooming in or out, the test against the int min and max zoom fails as the cast "as double" fails.
In addition the min and max tests are the wrong way round.
Finally, if the zoom hits a min or max, the min or max zoom isn't applied.
The fix includes changing the type of minZoom and maxZoom to double which does not effect other code that references it.

Copy link
Member

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JaffaKetchup
Copy link
Member

@chriscant Please pull from upstream, then this is ready for merge. Thanks!

@JaffaKetchup JaffaKetchup merged commit bb0b9c5 into fleaflet:master Jan 29, 2022
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