Shumate.RasterRenderer¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Data source |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Shumate.RasterRenderer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(data_source)¶
- Parameters:
data_source (
Shumate.DataSource
) – a [class`DataSource`] to provide tile image data- Returns:
a newly constructed [class`RasterRenderer`]
- Return type:
Creates a new [class`RasterRenderer`] that uses the given data source.
- classmethod new_from_url(url_template)¶
- Parameters:
url_template (
str
) – a URL template to fetch tiles from- Returns:
a newly constructed [class`RasterRenderer`]
- Return type:
Creates a new [class`RasterRenderer`] that fetches tiles from the given URL using a [class`TileDownloader`] data source.
Equivalent to:
``c g_autoptr(ShumateTileDownloader) source = shumate_tile_downloader_new (url_template); ShumateRasterRenderer *renderer = shumate_raster_renderer_new (source); ``
- classmethod new_full(id, name, license, license_uri, min_zoom, max_zoom, tile_size, projection, data_source)¶
- Parameters:
id (
str
) – the map source’s idname (
str
) – the map source’s namelicense (
str
) – the map source’s licenselicense_uri (
str
) – the map source’s license URImin_zoom (
int
) – the map source’s minimum zoom levelmax_zoom (
int
) – the map source’s maximum zoom leveltile_size (
int
) – the map source’s tile size (in pixels)projection (
Shumate.MapProjection
) – the map source’s projectiondata_source (
Shumate.DataSource
) – a [class`DataSource`] to provide tile image data
- Returns:
a newly constructed [class`RasterRenderer`]
- Return type:
Creates a new [class`RasterRenderer`] with the given details and a data source.
- classmethod new_full_from_url(id, name, license, license_uri, min_zoom, max_zoom, tile_size, projection, url_template)¶
- Parameters:
id (
str
) – the map source’s idname (
str
) – the map source’s namelicense (
str
) – the map source’s licenselicense_uri (
str
) – the map source’s license URImin_zoom (
int
) – the map source’s minimum zoom levelmax_zoom (
int
) – the map source’s maximum zoom leveltile_size (
int
) – the map source’s tile size (in pixels)projection (
Shumate.MapProjection
) – the map source’s projectionurl_template (
str
) – a URL template to fetch tiles from
- Returns:
a newly constructed [class`RasterRenderer`]
- Return type:
Creates a new [class`RasterRenderer`] with the given details and a data source.
Property Details¶
- Shumate.RasterRenderer.props.data_source¶
- Name:
data-source
- Type:
- Default Value:
- Flags:
The data source that provides image tiles to display. In most cases, a [class`TileDownloader`] is sufficient.