Change background map for contextily

后端 未结 3 1577
闹比i
闹比i 2021-02-08 10:56

I have this code:

import pandas as pd
import numpy as np
from geopandas import GeoDataFrame
import geopandas
from shapely.geometry import LineString, Point
impor         


        
3条回答
  •  时光说笑
    2021-02-08 11:33

    im too new to add a comment but I wanted to point out to those saying in the comments that they get a 404 error. Check you capitaliations, etc. Stamen's urls are specifc on this. For instance there is not an all caps call. It is only capitalize the first letter. For example:

    ctx.add_basemap(ax=ax,url=ctx.providers.Stamen.Toner, zoom=10)

提交回复
热议问题