RasterRenderer#
Superclasses: MapSource
, 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#
- class RasterRenderer
- classmethod new(data_source: DataSource) RasterRenderer #
Creates a new
RasterRenderer
that uses the given data source.- Parameters:
data_source – a
DataSource
to provide tile image data
- classmethod new_from_url(url_template: str) RasterRenderer #
Creates a new
RasterRenderer
that fetches tiles from the given URL using aTileDownloader
data source.Equivalent to:
g_autoptr(ShumateTileDownloader) source = shumate_tile_downloader_new (url_template); ShumateRasterRenderer *renderer = shumate_raster_renderer_new (source);
- Parameters:
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: MapProjection, data_source: DataSource) RasterRenderer #
Creates a new
RasterRenderer
with the given details and a data source.- Parameters:
id – the map source’s id
name – the map source’s name
license – the map source’s license
license_uri – the map source’s license URI
min_zoom – the map source’s minimum zoom level
max_zoom – the map source’s maximum zoom level
tile_size – the map source’s tile size (in pixels)
projection – the map source’s projection
data_source – a
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: MapProjection, url_template: str) RasterRenderer #
Creates a new
RasterRenderer
with the given details and a data source.- Parameters:
id – the map source’s id
name – the map source’s name
license – the map source’s license
license_uri – the map source’s license URI
min_zoom – the map source’s minimum zoom level
max_zoom – the map source’s maximum zoom level
tile_size – the map source’s tile size (in pixels)
projection – the map source’s projection
url_template – a URL template to fetch tiles from
Properties#
- class RasterRenderer
- props.data_source: DataSource#
The type of the None singleton.