Skip to content

Refactor basemap module on top of xyzservices #854

Closed
@martinfleis

Description

@martinfleis

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

def basemap_to_tiles(basemap, day='yesterday', **kwargs):
to match the 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions