Champlain.FileTileSource

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

Subclasses:None

Methods

Inherited:Champlain.TileSource (10), Champlain.MapSource (20), GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new_full (id, name, license, license_uri, min_zoom, max_zoom, tile_size, projection, renderer)
  load_map_data (map_path)

Virtual Methods

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

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent Champlain.TileSource r  

Class Details

class Champlain.FileTileSource(**kwargs)
Bases:Champlain.TileSource
Abstract:No
Structure:Champlain.FileTileSourceClass

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

New 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 id
  • name (str) – the map source’s name
  • license (str) – the map source’s license
  • license_uri (str) – the map source’s license URI
  • min_zoom (int) – the map source’s minimum zoom level
  • max_zoom (int) – the map source’s maximum zoom level
  • tile_size (int) – the map source’s tile size (in pixels)
  • projection (Champlain.MapProjection) – the map source’s projection
  • renderer (Champlain.Renderer) – the Champlain.Renderer used to render tiles
Returns:

a constructed Champlain.FileTileSource object

Return type:

Champlain.FileTileSource

Constructor of Champlain.FileTileSource.

New in version 0.8.

load_map_data(map_path)
Parameters:map_path (str) – a path to a map data file

Loads the OpenStreetMap XML file at the given path.

New in version 0.8.