TileDownloader#
Superclasses: DataSource
, Object
A DataSource
that asynchronously downloads tiles from an online
service using a given template.
It contains an internal FileCache
to cache the tiles on the system.
Constructors#
- class TileDownloader
- classmethod new(url_template: str) TileDownloader #
Creates a new
TileDownloader
that fetches tiles from an API and caches them on disk.See
url_template
for the format of the URL template.- Parameters:
url_template – a URL template to fetch tiles from