Champlain.NetworkTileSource¶
- Subclasses:
None
Methods¶
- Inherited:
Champlain.TileSource (10), Champlain.MapSource (20), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The maximum number of allowed simultaneous connections for this tile source. |
||
r/w |
Offline |
||
r/w |
The proxy URI to use to access network |
||
r/w/c |
The URI format |
||
w |
The HTTP user agent used for network requests |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Champlain.NetworkTileSource(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Champlain.NetworkTileSource
structure contains only private data and should be accessed using the provided APINew in version 0.6.
- classmethod new_full(id, name, license, license_uri, min_zoom, max_zoom, tile_size, projection, uri_format, renderer)¶
- 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 (
Champlain.MapProjection
) – the map source’s projectionuri_format (
str
) – the URI to fetch the tiles from, seeChamplain.NetworkTileSource.set_uri_format
renderer (
Champlain.Renderer
) – theChamplain.Renderer
used to render tiles
- Returns:
a constructed
Champlain.NetworkTileSource
object- Return type:
Constructor of
Champlain.NetworkTileSource
.New in version 0.4.
- get_max_conns()¶
- Returns:
the max number of allowed simultaneous connections for this tile source.
- Return type:
Gets the max number of allowed simultaneous connections for this tile source.
New in version 0.12.14.
- get_offline()¶
-
Gets offline status.
New in version 0.6.
- get_proxy_uri()¶
- Returns:
the proxy uri
- Return type:
Gets the proxy uri used to access network.
New in version 0.6.
- get_uri_format()¶
- Returns:
A URI format used for URI creation when downloading tiles. See
Champlain.NetworkTileSource.set_uri_format
() for more information.- Return type:
Default constructor of
Champlain.NetworkTileSource
.New in version 0.6.
- set_max_conns(max_conns)¶
- Parameters:
max_conns (
int
) – the number of allowed simultaneous connections
Sets the max number of allowed simultaneous connections for this tile source.
Before changing this remember to verify how many simultaneous connections your tile provider allows you to make.
New in version 0.12.14.
- set_offline(offline)¶
-
Sets offline status.
New in version 0.6.
- set_proxy_uri(proxy_uri)¶
- Parameters:
proxy_uri (
str
) – the proxy uri used to access network
Override the default proxy for accessing the network.
New in version 0.6.
- set_uri_format(uri_format)¶
- Parameters:
uri_format (
str
) – the URI format
A URI format is a URI where x, y and zoom level information have been marked for parsing and insertion. There can be an unlimited number of marked items in a URI format. They are delimited by “#” before and after the variable name. There are 4 defined variable names: X, Y, Z, and TMSY for Y in TMS coordinates.
For example, this is the OpenStreetMap URI format: “https://tile.openstreetmap.org/\#Z\#/\#X\#/\#Y\#.png”
New in version 0.4.
Property Details¶
- Champlain.NetworkTileSource.props.max_conns¶
-
Specifies the max number of allowed simultaneous connections for this tile source.
Before changing this remember to verify how many simultaneous connections your tile provider allows you to make.
New in version 0.12.14.
- Champlain.NetworkTileSource.props.offline¶
-
Specifies whether the network tile source can access network
New in version 0.4.
- Champlain.NetworkTileSource.props.proxy_uri¶
-
Used to override the default proxy for accessing the network.
New in version 0.4.
- Champlain.NetworkTileSource.props.uri_format¶
-
The uri format of the tile source, see
Champlain.NetworkTileSource.set_uri_format
New in version 0.4.