Champlain.TileSource

g Champlain.MapSource Champlain.MapSource Champlain.TileSource Champlain.TileSource Champlain.MapSource->Champlain.TileSource GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Champlain.MapSource GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

Champlain.FileTileSource, Champlain.NetworkBboxTileSource, Champlain.NetworkTileSource, Champlain.NullTileSource

Methods

Inherited:

Champlain.MapSource (20), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_cache ()

set_cache (cache)

set_id (id)

set_license (license)

set_license_uri (license_uri)

set_max_zoom_level (zoom_level)

set_min_zoom_level (zoom_level)

set_name (name)

set_projection (projection)

set_tile_size (tile_size)

Virtual Methods

Inherited:

Champlain.MapSource (9), GObject.Object (7)

Properties

Inherited:

Champlain.MapSource (2)

Name

Type

Flags

Short Description

cache

Champlain.TileCache

r/w

Cache used for tile sorage

id

str

r/w/c

The id of the tile source

license

str

r/w/c

The usage license of the tile source

license-uri

str

r/w/c

The usage license’s uri for more information

max-zoom-level

int

r/w/c

The maximum zoom level

min-zoom-level

int

r/w/c

The minimum zoom level

name

str

r/w/c

The name of the tile source

projection

Champlain.MapProjection

r/w/c

The map projection

tile-size

int

r/w/c

The tile size

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Champlain.MapSource

r

Class Details

class Champlain.TileSource(**kwargs)
Bases:

Champlain.MapSource

Abstract:

Yes

Structure:

Champlain.TileSourceClass

The Champlain.TileSource structure contains only private data and should be accessed using the provided API

New in version 0.6.

get_cache()
Returns:

the cache

Return type:

Champlain.TileCache

Gets the cache used for storing tiles by this tile source.

New in version 0.6.

set_cache(cache)
Parameters:

cache (Champlain.TileCache) – a Champlain.TileCache

Sets the map source’s cache used for storing tiles.

New in version 0.6.

set_id(id)
Parameters:

id (str) – an id

Sets the tile source’s id.

New in version 0.4.

set_license(license)
Parameters:

license (str) – the licence

Sets the tile source’s license.

New in version 0.4.

set_license_uri(license_uri)
Parameters:

license_uri (str) – the licence URI

Sets the tile source’s license URI.

New in version 0.4.

set_max_zoom_level(zoom_level)
Parameters:

zoom_level (int) – the maximum zoom level

Sets the tile source’s maximum zoom level.

New in version 0.6.

set_min_zoom_level(zoom_level)
Parameters:

zoom_level (int) – the minimal zoom level

Sets the tile source’s minimal zoom level.

New in version 0.6.

set_name(name)
Parameters:

name (str) – a name

Sets the tile source’s name.

New in version 0.4.

set_projection(projection)
Parameters:

projection (Champlain.MapProjection) – a Champlain.MapProjection

Sets the tile source’s projection.

New in version 0.4.

set_tile_size(tile_size)
Parameters:

tile_size (int) – the tile size

Sets the tile source’s tile size.

New in version 0.6.

Property Details

Champlain.TileSource.props.cache
Name:

cache

Type:

Champlain.TileCache

Default Value:

None

Flags:

READABLE, WRITABLE

The cache used for tile storage

New in version 0.6.

Champlain.TileSource.props.id
Name:

id

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The id of the tile source

New in version 0.4.

Champlain.TileSource.props.license
Name:

license

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The usage license of the tile source

New in version 0.4.

Champlain.TileSource.props.license_uri
Name:

license-uri

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The usage license’s uri for more information

New in version 0.4.

Champlain.TileSource.props.max_zoom_level
Name:

max-zoom-level

Type:

int

Default Value:

18

Flags:

READABLE, WRITABLE, CONSTRUCT

The maximum zoom level

New in version 0.4.

Champlain.TileSource.props.min_zoom_level
Name:

min-zoom-level

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT

The minimum zoom level

New in version 0.4.

Champlain.TileSource.props.name
Name:

name

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The name of the tile source

New in version 0.4.

Champlain.TileSource.props.projection
Name:

projection

Type:

Champlain.MapProjection

Default Value:

Champlain.MapProjection.MERCATOR

Flags:

READABLE, WRITABLE, CONSTRUCT

The map projection of the tile source

New in version 0.4.

Champlain.TileSource.props.tile_size
Name:

tile-size

Type:

int

Default Value:

256

Flags:

READABLE, WRITABLE, CONSTRUCT

The tile size of the tile source

New in version 0.4.