Shumate.MapLayer¶
- Subclasses:
None
Methods¶
- Inherited:
Shumate.Layer (1), Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1)
- Structs:
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The Map Source |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when all the tiles in the map view are finished loading. |
|
Emitted when a symbol in the map layer is clicked. |
|
Emitted when a tile fails to load. |
Fields¶
- Inherited:
Class Details¶
- class Shumate.MapLayer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A [class`Shumate`.Layer] implementation that fetches tiles from a [class`Shumate`.MapSource] and draws them as a grid.
- classmethod new(map_source, viewport)¶
- Parameters:
map_source (
Shumate.MapSource
) –viewport (
Shumate.Viewport
) –
- Return type:
Signal Details¶
- Shumate.MapLayer.signals.map_loaded(map_layer, errors)¶
- Signal Name:
map-loaded
- Flags:
- Parameters:
map_layer (
Shumate.MapLayer
) – The object which received the signalerrors (
bool
) –TRUE
if any visible tiles failed to load
Emitted when all the tiles in the map view are finished loading.
As the map is panned or zoomed, this signal may be emitted multiple times.
New in version 1.4.
- Shumate.MapLayer.signals.symbol_clicked(map_layer, event)¶
- Signal Name:
symbol-clicked
- Flags:
- Parameters:
map_layer (
Shumate.MapLayer
) – The object which received the signalevent (
Shumate.SymbolEvent
) – a [class`SymbolEvent`] with details about the clicked symbol.
Emitted when a symbol in the map layer is clicked.
New in version 1.1.
- Shumate.MapLayer.signals.tile_error(map_layer, tile, error)¶
- Signal Name:
tile-error
- Flags:
- Parameters:
map_layer (
Shumate.MapLayer
) – The object which received the signaltile (
Shumate.Tile
) – the [class`Tile`] that failed to loaderror (
GLib.Error
) – the error that occurred
Emitted when a tile fails to load.
New in version 1.4.
Property Details¶
- Shumate.MapLayer.props.map_source¶
- Name:
map-source
- Type:
- Default Value:
- Flags:
The Map Source