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

Added backward compatibility for dict basemaps #901

Merged
merged 2 commits into from
Dec 13, 2021

Conversation

sackh
Copy link
Contributor

@sackh sackh commented Dec 7, 2021

Signed-off-by: Kharude, Sachin sachin.kharude@here.com

Hi @martinRenou,

I am not sure why these code changes were not included in my PR #857 . As these are there to handle backward compatibility with the dictionary for basemap_to_tiles function.
Please review this. Without this, it will break if the user passes a simple dictionary as a basemap.
I added these changes in my forked branch but somehow did not see them in the PR.
https://github.com/sackh/ipyleaflet/blob/b741cb5cf9e86ae5f62bd1408de391ae6300b353/ipyleaflet/leaflet.py#L53

Signed-off-by: Kharude, Sachin <sachin.kharude@here.com>
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
ipyleaflet/leaflet.py Outdated Show resolved Hide resolved
Signed-off-by: Kharude, Sachin <sachin.kharude@here.com>
@deeplook
Copy link
Contributor

deeplook commented Dec 8, 2021

Ipyleaflet needs a testsuite... ;)

@martinRenou
Copy link
Member

martinRenou commented Dec 8, 2021

Ipyleaflet needs a testsuite... ;)

PR welcome @deeplook... ;)

@martinRenou
Copy link
Member

We have JupyterLab's Galata now. If you want, you can take a look at what ipywidgets/bqplot do for testing and start from there. We'd be happy to guide you.

@martinRenou
Copy link
Member

Thanks!

@martinRenou martinRenou merged commit f48243a into jupyter-widgets:master Dec 13, 2021
@martinRenou martinRenou deleted the xyzservices-fix branch December 13, 2021 09:58
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.

4 participants