marinebon / map-of-activities

MBON Map of Activities
https://marinebon.github.io/map-of-activities/
MIT License
2 stars 2 forks source link

add attr to TileLayer #11

Closed MathewBiddle closed 11 months ago

MathewBiddle commented 1 year ago

The action is failing https://github.com/marinebon/map-of-activities/actions/runs/7056264936/job/19207954892

Need to add attr=attr, to:

folium.raster_layers.TileLayer(
    'cartodbdark_matter',
     name="CartoDB",
).add_to(m)

folium.raster_layers.TileLayer(
    name="Toner",
    tiles="Stamen Toner",
).add_to(m)
MathewBiddle commented 1 year ago

@ocefpaf it looks like something changed w/ folium v0.15 that now requires attr for TileLayer. Or maybe Stammen Toner is deprecated?

ocefpaf commented 12 months ago

@ocefpaf it looks like something changed w/ folium v0.15 that now requires attr for TileLayer. Or maybe Stammen Toner is deprecated?

Stammen Toner is no longer free. We removed it from folium 0.15.1. Also, users can use xyzservices as the title providers. See https://xyzservices.readthedocs.io/en/stable/ for the list of all the available tiles.

PS: one can still use Stammen Toner if you have an API key.