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 zoom_offset param to TileLayer #1023

Merged
merged 1 commit into from Jul 25, 2022

Conversation

ned2
Copy link
Contributor

@ned2 ned2 commented Jul 16, 2022

Add Leaflet's zoomOffset param for TileLayer class as zoom_offset.

Setting zoom_offset=-1 is necessary in order to be able to support tile_size=512, which is the default tile size for Mapbox tiles.

Fixes #31

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@martinRenou martinRenou merged commit d929208 into jupyter-widgets:master Jul 25, 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.

Add tms and zoomOffset options to TileLayer
2 participants