Project

General

Profile

Support #10224

Update gs.basemaps in Jupyter notebooks

Added by Philippe May over 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
28/05/2020
Due date:
% Done:

100%

Close

Description

A new version of contextily Python library deprecated contextily.sources in favor of contextily.providers.

Need to update all notebooks (eg. dashboards) with this new convention.

Associated revisions

Revision 105ff1ed (diff)
Added by Philippe May over 4 years ago

Refs #10224: remove add_basemap (see contextily)

Revision 6491bc7f (diff)
Added by Philippe May over 4 years ago

Fixes #10224: use contextily.add_basemap

History

#1 Updated by Philippe May over 4 years ago

That's quite simple, instead of:

gs.add_basemap(ax1, 13, url=gs.basemaps.ST_WATERCOLOR)

do:

import contextily as ctx
ctx.add_basemap(ax=ax1, source=ctx.providers.Stamen.Watercolor, alpha=0.3)

#2 Updated by Philippe May over 4 years ago

  • Status changed from New to Resolved

#3 Updated by Philippe May over 3 years ago

  • % Done changed from 0 to 100

Also available in: Atom PDF