Description
Hi all,
I'd like to start a focused discussion as a follow-up of geopandas/contextily#153 and #741.
We have built a new package called xyzservices
to serve as a unified place for XYZ tile management. The idea behind this is that other packages will depend on that instead of having their own system.
In the case of ipyleaflet
, that means refactoring basemaps
module in a way that does not contain any hard-coded data and only wraps what ``xyzservices` provides.
From a quick look, it could take the form of replacing your Bunch
with xyzservices.providers
Bunch and of small changes in
ipyleaflet/ipyleaflet/leaflet.py
Line 36 in c969f79
xyzservices
API (to get the proper form of URL (xref geopandas/xyzservices/pull/60) and attribution).
xyzservices
itself does not have any dependencies which makes it a non-problematic dependency.
Some of you also mentioned you wanted the JSON stored in share
. That also comes with xyzservices
if you have a use case for that.
I am happy to do any changes in xyzservices
needed to make it as useful for you as possible if that allows centralising maintenance of providers in one place.
What are your thoughts on this?