question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactor basemap module on top of xyzservices

See original GitHub issue

Hi all,

I’d like to start a focused discussion as a follow-up of https://github.com/geopandas/contextily/issues/153 and https://github.com/jupyter-widgets/ipyleaflet/issues/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 https://github.com/jupyter-widgets/ipyleaflet/blob/c969f79da419aef39f63e6745d0f234493280f67/ipyleaflet/leaflet.py#L36 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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
davidbrochartcommented, Aug 6, 2021

I don’t know if @giswqs is already on it? I like that people are fighting to contribute to ipyleaflet 😄

0reactions
sackhcommented, Aug 9, 2021

Thanks, @martinfleis

Read more comments on GitHub >

github_iconTop Results From Across the Web

Qiusheng Wu on Twitter: "Creating a gallery of 100 basemaps ...
Refactor basemap module on top of xyzservices · Issue #854 ... We have built a new package called xyzservices to serve as a...
Read more >
basemaps module - leafmap
A Python package for interactive mapping and geospatial analysis with minimal coding in a Jupyter environment.
Read more >
image on top of basemap continent - python - Stack Overflow
The first answer actually works. I should have used OffsetImage and AnnotationBbox. This successfully places the image on top of the plot data....
Read more >
xyzservices: a unified source of XYZ tile providers in Python
contextily. contextily brings contextual base maps to static geopandas plots. It comes with a dedicated contextily.providers module, which ...
Read more >
AUR (en) - Packages - Arch Linux
... a repository of available XYZ services offering raster basemap tiles. ... python-wifi, 0.6.1-1, 2, 0.00, A Python module that provides read and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found