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

Simplify max_zoom logics in Map and TileLayer #965

Merged

Conversation

HaudinFlorence
Copy link
Contributor

Simplify max_zoom logics in Map and TileLayer.

Add changes in Map and TileLayer options to fit the one's of LeafletJS.
Updates of the related docstrings.

js/src/Map.js Show resolved Hide resolved
js/src/Map.js Outdated Show resolved Hide resolved
@HaudinFlorence HaudinFlorence marked this pull request as draft April 15, 2022 09:23
@HaudinFlorence HaudinFlorence force-pushed the simplify_max_zoom_logics branch 2 times, most recently from 1fbcc62 to 371b654 Compare April 16, 2022 12:55
@HaudinFlorence
Copy link
Contributor Author

HaudinFlorence commented Apr 16, 2022

The changes for the attributes of Map have been made to fit with the default values in LeafletJS. According to that, zoom and center have now default values put as None. In the notebook, the user has now to give a value for both for the Map to be properly defined.

docs/source/layers/tile_layer.rst Outdated Show resolved Hide resolved
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
ipyleaflet/leaflet.py Show resolved Hide resolved
ipyleaflet/leaflet.py Show resolved Hide resolved
@HaudinFlorence HaudinFlorence force-pushed the simplify_max_zoom_logics branch 3 times, most recently from 8f8fc1d to ebe85a2 Compare April 19, 2022 16:13
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
examples/Max_zoom_tests.ipynb Outdated Show resolved Hide resolved
@HaudinFlorence HaudinFlorence force-pushed the simplify_max_zoom_logics branch 2 times, most recently from 5520e9d to cc43ad6 Compare April 20, 2022 15:19
js/src/Map.js Outdated Show resolved Hide resolved
@HaudinFlorence HaudinFlorence force-pushed the simplify_max_zoom_logics branch 2 times, most recently from fc258aa to 7a718cb Compare April 21, 2022 08:09
@HaudinFlorence HaudinFlorence force-pushed the simplify_max_zoom_logics branch from 7a718cb to 8cf6a7a Compare April 22, 2022 14:02
@HaudinFlorence HaudinFlorence marked this pull request as ready for review April 22, 2022 14:39
@HaudinFlorence
Copy link
Contributor Author

Please update galata references. Thanks

@martinRenou
Copy link
Member

Triggering CI

@martinRenou martinRenou reopened this Apr 22, 2022
@martinRenou martinRenou merged commit 99196e1 into jupyter-widgets:master Apr 22, 2022
@martinRenou
Copy link
Member

Thanks!!

martinRenou added a commit to martinRenou/ipyleaflet that referenced this pull request Oct 27, 2022
davidbrochart added a commit that referenced this pull request Oct 27, 2022
Revert change from #965 that sets the default zoom to None
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