Champlain.NetworkBboxTileSource¶
- 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 API URI of an OpenStreetMap server |
||
r/w |
The proxy URI to use to access network |
||
r/w |
The state of the map data source |
||
w |
The HTTP user agent used for network requests |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Champlain.NetworkBboxTileSource(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Champlain.NetworkBboxTileSource
structure contains only private data and should be accessed using the provided APINew in version 0.8.
- classmethod new_full(id, name, license, license_uri, min_zoom, max_zoom, tile_size, projection, 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 projectionrenderer (
Champlain.Renderer
) – theChamplain.Renderer
used to render tiles
- Returns:
a constructed
Champlain.NetworkBboxTileSource
object- Return type:
Constructor of
Champlain.NetworkBboxTileSource
.New in version 0.8.
- get_api_uri()¶
- Returns:
the URI of the API server.
- Return type:
Gets the URI of the API server.
New in version 0.8.
- load_map_data(bbox)¶
- Parameters:
bbox (
Champlain.BoundingBox
) – bounding box of the requested area
Asynchronously loads map data within a bounding box from the server. The box must not exceed an edge size of 0.25 degree. There are also limitations on the maximum number of nodes that can be requested.
For details, see: https://api.openstreetmap.org/api/capabilities
New in version 0.10.
Property Details¶
- Champlain.NetworkBboxTileSource.props.api_uri¶
- Name:
api-uri
- Type:
- Default Value:
'https://www.informationfreeway.org/api/0.6'
- Flags:
The URI of an OpenStreetMap API server
New in version 0.8.
- Champlain.NetworkBboxTileSource.props.proxy_uri¶
-
Used to override the default proxy for accessing the network.
New in version 0.8.
- Champlain.NetworkBboxTileSource.props.state¶
- Name:
state
- Type:
- Default Value:
- Flags:
The map source’s state. Useful to know if the data source is loading or not.
New in version 0.8.