:right-sidebar: True TileDownloader =================================================================== .. currentmodule:: gi.repository.Shumate .. class:: TileDownloader(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Shumate.DataSource`, :class:`~gi.repository.GObject.Object` :Constructors: :: TileDownloader(**properties) new(url_template:str) -> Shumate.TileDownloader Constructors ------------ .. rst-class:: interim-class .. class:: TileDownloader :no-index: .. classmethod:: new(url_template: str) -> ~gi.repository.Shumate.TileDownloader Creates a new :obj:`~gi.repository.Shumate.TileDownloader` that fetches tiles from an API and caches them on disk. See :obj:`~gi.repository.Shumate.TileDownloader.props.url_template` for the format of the URL template. :param url_template: a URL template to fetch tiles from Properties ---------- .. rst-class:: interim-class .. class:: TileDownloader :no-index: .. attribute:: props.url_template :type: str A template for construting the URL to download a tile from. The template has the following replacements: - "{x}": The X coordinate of the tile - "{y}": The Y coordinate of the tile - "{z}": The zoom level of the tile - "{tmsy}": The inverted Y coordinate (i.e. tile numbering starts with 0 at the bottom, rather than top, of the map)