holoviz / geoviews

Simple, concise geographical visualization in Python
http://geoviews.org
BSD 3-Clause "New" or "Revised" License
597 stars 77 forks source link

Saving tile sources with matplotlib backend causes HTTP Error 429: Too many requests #650

Closed ahuang11 closed 1 year ago

ahuang11 commented 1 year ago

I suspect that geoviews is trying to download the entire tileset, rather than just the region / level required to form a static image. Not sure if this is a GeoViews specific issue or HoloViews issue.

Maybe could adapt this: https://github.com/ahuang11/ahlive/blob/main/ahlive/data.py#L1272-L1334

Reproduce:

import geoviews as gv
gv.extension()

carto_dark = gv.tile_sources.OSM().opts(global_extent=True)
gv.save(carto_dark, "test.png")
ahuang11 commented 1 year ago

Fixed in https://github.com/holoviz/geoviews/pull/685