Shumate.RasterRenderer

g GObject.Object GObject.Object Shumate.MapSource Shumate.MapSource GObject.Object->Shumate.MapSource Shumate.RasterRenderer Shumate.RasterRenderer Shumate.MapSource->Shumate.RasterRenderer

Subclasses:

None

Methods

Inherited:

Shumate.MapSource (26), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (data_source)

class

new_from_url (url_template)

class

new_full (id, name, license, license_uri, min_zoom, max_zoom, tile_size, projection, data_source)

class

new_full_from_url (id, name, license, license_uri, min_zoom, max_zoom, tile_size, projection, url_template)

Virtual Methods

Inherited:

Shumate.MapSource (2), GObject.Object (7)

Properties

Inherited:

Shumate.MapSource (8)

Name

Type

Flags

Short Description

data-source

Shumate.DataSource

r/w/co

Data source

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Shumate.RasterRenderer(**kwargs)
Bases:

Shumate.MapSource

Abstract:

No

Structure:

Shumate.RasterRendererClass

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:

Shumate.RasterRenderer

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:

Shumate.RasterRenderer

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 id

  • name (str) – the map source’s name

  • license (str) – the map source’s license

  • license_uri (str) – the map source’s license URI

  • min_zoom (int) – the map source’s minimum zoom level

  • max_zoom (int) – the map source’s maximum zoom level

  • tile_size (int) – the map source’s tile size (in pixels)

  • projection (Shumate.MapProjection) – the map source’s projection

  • data_source (Shumate.DataSource) – a [class`DataSource`] to provide tile image data

Returns:

a newly constructed [class`RasterRenderer`]

Return type:

Shumate.RasterRenderer

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 id

  • name (str) – the map source’s name

  • license (str) – the map source’s license

  • license_uri (str) – the map source’s license URI

  • min_zoom (int) – the map source’s minimum zoom level

  • max_zoom (int) – the map source’s maximum zoom level

  • tile_size (int) – the map source’s tile size (in pixels)

  • projection (Shumate.MapProjection) – the map source’s projection

  • url_template (str) – a URL template to fetch tiles from

Returns:

a newly constructed [class`RasterRenderer`]

Return type:

Shumate.RasterRenderer

Creates a new [class`RasterRenderer`] with the given details and a data source.

Property Details

Shumate.RasterRenderer.props.data_source
Name:

data-source

Type:

Shumate.DataSource

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The data source that provides image tiles to display. In most cases, a [class`TileDownloader`] is sufficient.