Skip to content

Set min_zoom default to Leaflet value (0 i.o. 1)#791

Merged
ocefpaf merged 2 commits intopython-visualization:masterfrom
Conengmo:min-zoom-default
Dec 7, 2017
Merged

Set min_zoom default to Leaflet value (0 i.o. 1)#791
ocefpaf merged 2 commits intopython-visualization:masterfrom
Conengmo:min-zoom-default

Conversation

@Conengmo
Copy link
Copy Markdown
Member

@Conengmo Conengmo commented Dec 7, 2017

I noticed the default value for the min_zoom parameter is set to 1, while in Leaflet it is 0. I couldn't find any documentation on this, so I assume it's a (tiny) mistake.

I can imagine that users don't want the zoom_start to change from 1 to 0, so I set it to 1 instead of min_zoom. If min_zoom is higher than 1, Leaflet will automatically change the starting zoom level.

@ocefpaf
Copy link
Copy Markdown
Member

ocefpaf commented Dec 7, 2017

LGTM (and this one is an easy merge 😉)

Thanks @Conengmo! I'll try to find some time to review your other PRs ASAP.

@ocefpaf ocefpaf merged commit 106d829 into python-visualization:master Dec 7, 2017
@Conengmo Conengmo deleted the min-zoom-default branch December 7, 2017 11:59
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