Champlain.TileSource¶
- Subclasses:
Champlain.FileTileSource
,Champlain.NetworkBboxTileSource
,Champlain.NetworkTileSource
,Champlain.NullTileSource
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Cache used for tile sorage |
||
r/w/c |
The id of the tile source |
||
r/w/c |
The usage license of the tile source |
||
r/w/c |
The usage license’s uri for more information |
||
r/w/c |
The maximum zoom level |
||
r/w/c |
The minimum zoom level |
||
r/w/c |
The name of the tile source |
||
r/w/c |
The map projection |
||
r/w/c |
The tile size |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Champlain.TileSource(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The
Champlain.TileSource
structure contains only private data and should be accessed using the provided APINew in version 0.6.
- get_cache()¶
- Returns:
the cache
- Return type:
Gets the cache used for storing tiles by this tile source.
New in version 0.6.
- set_cache(cache)¶
- Parameters:
cache (
Champlain.TileCache
) – aChamplain.TileCache
Sets the map source’s cache used for storing tiles.
New in version 0.6.
- 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_projection(projection)¶
- Parameters:
projection (
Champlain.MapProjection
) – aChamplain.MapProjection
Sets the tile source’s projection.
New in version 0.4.
Property Details¶
- Champlain.TileSource.props.cache¶
- Name:
cache
- Type:
- Default Value:
- Flags:
The cache used for tile storage
New in version 0.6.
- Champlain.TileSource.props.id¶
-
The id of the tile source
New in version 0.4.
- Champlain.TileSource.props.license¶
-
The usage license of the tile source
New in version 0.4.
- Champlain.TileSource.props.license_uri¶
-
The usage license’s uri for more information
New in version 0.4.
- Champlain.TileSource.props.max_zoom_level¶
-
The maximum zoom level
New in version 0.4.
- Champlain.TileSource.props.min_zoom_level¶
-
The minimum zoom level
New in version 0.4.
- Champlain.TileSource.props.name¶
-
The name of the tile source
New in version 0.4.
- Champlain.TileSource.props.projection¶
- Name:
projection
- Type:
- Default Value:
- Flags:
The map projection of the tile source
New in version 0.4.