:right-sidebar: True RasterRenderer =================================================================== .. currentmodule:: gi.repository.Shumate .. class:: RasterRenderer(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Shumate.MapSource`, :class:`~gi.repository.GObject.Object` :Constructors: :: RasterRenderer(**properties) new(data_source:Shumate.DataSource) -> Shumate.RasterRenderer new_from_url(url_template:str) -> Shumate.RasterRenderer new_full(id:str, name:str, license:str, license_uri:str, min_zoom:int, max_zoom:int, tile_size:int, projection:Shumate.MapProjection, data_source:Shumate.DataSource) -> Shumate.RasterRenderer new_full_from_url(id:str, name:str, license:str, license_uri:str, min_zoom:int, max_zoom:int, tile_size:int, projection:Shumate.MapProjection, url_template:str) -> Shumate.RasterRenderer Constructors ------------ .. rst-class:: interim-class .. class:: RasterRenderer :no-index: .. classmethod:: new(data_source: ~gi.repository.Shumate.DataSource) -> ~gi.repository.Shumate.RasterRenderer Creates a new :obj:`~gi.repository.Shumate.RasterRenderer` that uses the given data source. :param data_source: a :obj:`~gi.repository.Shumate.DataSource` to provide tile image data .. classmethod:: new_from_url(url_template: str) -> ~gi.repository.Shumate.RasterRenderer Creates a new :obj:`~gi.repository.Shumate.RasterRenderer` that fetches tiles from the given URL using a :obj:`~gi.repository.Shumate.TileDownloader` data source. Equivalent to: .. code-block:: c :dedent: g_autoptr(ShumateTileDownloader) source = shumate_tile_downloader_new (url_template); ShumateRasterRenderer *renderer = shumate_raster_renderer_new (source); :param url_template: a URL template to fetch tiles from .. classmethod:: new_full(id: str, name: str, license: str, license_uri: str, min_zoom: int, max_zoom: int, tile_size: int, projection: ~gi.repository.Shumate.MapProjection, data_source: ~gi.repository.Shumate.DataSource) -> ~gi.repository.Shumate.RasterRenderer Creates a new :obj:`~gi.repository.Shumate.RasterRenderer` with the given details and a data source. :param id: the map source's id :param name: the map source's name :param license: the map source's license :param license_uri: the map source's license URI :param min_zoom: the map source's minimum zoom level :param max_zoom: the map source's maximum zoom level :param tile_size: the map source's tile size (in pixels) :param projection: the map source's projection :param data_source: a :obj:`~gi.repository.Shumate.DataSource` to provide tile image data .. classmethod:: new_full_from_url(id: str, name: str, license: str, license_uri: str, min_zoom: int, max_zoom: int, tile_size: int, projection: ~gi.repository.Shumate.MapProjection, url_template: str) -> ~gi.repository.Shumate.RasterRenderer Creates a new :obj:`~gi.repository.Shumate.RasterRenderer` with the given details and a data source. :param id: the map source's id :param name: the map source's name :param license: the map source's license :param license_uri: the map source's license URI :param min_zoom: the map source's minimum zoom level :param max_zoom: the map source's maximum zoom level :param tile_size: the map source's tile size (in pixels) :param projection: the map source's projection :param url_template: a URL template to fetch tiles from Properties ---------- .. rst-class:: interim-class .. class:: RasterRenderer :no-index: .. attribute:: props.data_source :type: ~gi.repository.Shumate.DataSource The type of the None singleton.