Champlain.MapSourceDesc

g Champlain.MapSourceDesc Champlain.MapSourceDesc GObject.Object GObject.Object GObject.Object->Champlain.MapSourceDesc

Subclasses:None

Virtual Methods

Inherited:GObject.Object (7)

Properties

Name Type Flags Short Description
constructor int r/w/co Map source constructor
data int r/w/co User data
id str r/w/co Map source id
license str r/w/co Map source license
license-uri str r/w/co Map source license URI
max-zoom-level int r/w/co The highest allowed level of zoom
min-zoom-level int r/w/co The lowest allowed level of zoom
name str r/w/co Map source name
projection Champlain.MapProjection r/w/co Map source projection
tile-size int r/w/co The size of the map source tile
uri-format str r/w/co Network map source URI format

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent_instance GObject.Object r  

Class Details

class Champlain.MapSourceDesc(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Champlain.MapSourceDescClass

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

New in version 0.10.

get_data()
Returns:the user data.
Return type:object or None

Gets user data.

New in version 0.10.

get_id()
Returns:the map source’s id.
Return type:str

Gets map source’s id.

New in version 0.10.

get_license()
Returns:the map source’s license.
Return type:str

Gets map source’s license.

New in version 0.10.

get_license_uri()
Returns:the map source’s license URI.
Return type:str

Gets map source’s license URI.

New in version 0.10.

get_max_zoom_level()
Returns:the maximum zoom level this map source supports
Return type:int

Gets map source’s maximum zoom level.

New in version 0.10.

get_min_zoom_level()
Returns:the miminum zoom level this map source supports
Return type:int

Gets map source’s minimum zoom level.

New in version 0.10.

get_name()
Returns:the map source’s name.
Return type:str

Gets map source’s name.

New in version 0.10.

get_projection()
Returns:the map source’s projection.
Return type:Champlain.MapProjection

Gets map source’s projection.

New in version 0.10.

get_tile_size()
Returns:the tile’s size (width and height) in pixels for this map source
Return type:int

Gets map source’s tile size.

New in version 0.10.

get_uri_format()
Returns:the URI format.
Return type:str

Gets network map source’s URI format.

New in version 0.10.

Property Details

Champlain.MapSourceDesc.props.constructor
Name:constructor
Type:int
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The map source constructor

New in version 0.10.

Champlain.MapSourceDesc.props.data
Name:data
Type:int
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

User data passed to the constructor

New in version 0.10.

Champlain.MapSourceDesc.props.id
Name:id
Type:str
Default Value:''
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The id of the map source

New in version 0.10.

Champlain.MapSourceDesc.props.license
Name:license
Type:str
Default Value:''
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The license of the map source

New in version 0.10.

Champlain.MapSourceDesc.props.license_uri
Name:license-uri
Type:str
Default Value:''
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The license’s uri for more information

New in version 0.10.

Champlain.MapSourceDesc.props.max_zoom_level
Name:max-zoom-level
Type:int
Default Value:20
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The maximum zoom level

New in version 0.10.

Champlain.MapSourceDesc.props.min_zoom_level
Name:min-zoom-level
Type:int
Default Value:0
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The minimum zoom level

New in version 0.10.

Champlain.MapSourceDesc.props.name
Name:name
Type:str
Default Value:''
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The name of the map source

New in version 0.10.

Champlain.MapSourceDesc.props.projection
Name:projection
Type:Champlain.MapProjection
Default Value:Champlain.MapProjection.MERCATOR
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The map projection of the map source

New in version 0.10.

Champlain.MapSourceDesc.props.tile_size
Name:tile-size
Type:int
Default Value:256
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The tile size of the map source

New in version 0.10.

Champlain.MapSourceDesc.props.uri_format
Name:uri-format
Type:str
Default Value:''
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The URI format of a network map source

New in version 0.10.