Skip to content

Added support for xyzservices tile providers as basemaps #857

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

Merged
merged 4 commits into from
Nov 15, 2021

Conversation

sackh
Copy link
Contributor

@sackh sackh commented Aug 9, 2021

Signed-off-by: Kharude, Sachin [email protected]

This PR will resolve #854
I have tested all basemaps.
The below basemaps will not work at the moment as they are not defined in xyzservices providers:

Map(basemap=basemaps.OpenStreetMap.BlackAndWhite, center=center, zoom=zoom)
Map(basemap=basemaps.Gaode.Normal, center=center, zoom=zoom)
Map(basemap=basemaps.Gaode.Satellite, center=center, zoom=zoom)
Map(basemap=basemaps.NASAGIBS.ModisTerraBands721CR, center=center, zoom=zoom)
Map(basemap=basemaps.NASAGIBS.ModisAquaTrueColorCR, center=center, zoom=zoom)
Map(basemap=basemaps.NASAGIBS.ModisAquaBands721CR, center=center, zoom=zoom)
Map(basemap=basemaps.NASAGIBS.ViirsTrueColorCR, center=center, zoom=zoom)
Map(basemap=basemaps.Strava.Ride, center=center, zoom=zoom)
Map(basemap=basemaps.Strava.Run, center=center, zoom=zoom)
Map(basemap=basemaps.Strava.Water, center=center, zoom=zoom)
Map(basemap=basemaps.Strava.Winter, center=center, zoom=zoom)

Copy link

@martinfleis martinfleis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is exactly the kind of PR we were hoping for when we started building xyzservices :):
Screenshot 2021-08-09 at 19 48 33

The missing providers will be added in geopandas/xyzservices#83 and we can cut a release shortly after that if that helps. I am just not sure if Strava works at all.

Thanks a lot for playing with us :).

@martinRenou
Copy link
Member

Thanks for doing this!

@martinfleis
Copy link

I have released xyzservices 2021.08.1 which includes those tiles listed above as missing. That should fix your CI as well. It should show up on conda-forge in a few hours.

@justb4 justb4 mentioned this pull request Sep 9, 2021
@martinRenou
Copy link
Member

Rebased

@martinRenou
Copy link
Member

Thanks a lot for this PR!

The docs don't build, but it's not due to this PR so let's ignore it.

@martinRenou martinRenou merged commit 4ac4d7d into jupyter-widgets:master Nov 15, 2021
@martinRenou martinRenou deleted the xyzservices branch November 15, 2021 16:38
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.

Refactor basemap module on top of xyzservices
4 participants