Shumate.MapLayer

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Shumate.Layer Shumate.Layer Gtk.Widget->Shumate.Layer Shumate.MapLayer Shumate.MapLayer Shumate.Layer->Shumate.MapLayer

Subclasses:

None

Methods

Inherited:

Shumate.Layer (1), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (map_source, viewport)

Virtual Methods

Inherited:

Shumate.Layer (1), Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Shumate.Layer (1), Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

map-source

Shumate.MapSource

r/w/co

The Map Source

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Name

Short Description

symbol-clicked

Emitted when a symbol in the map layer is clicked.

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class Shumate.MapLayer(**kwargs)
Bases:

Shumate.Layer

Abstract:

No

Structure:

Shumate.MapLayerClass

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:
Return type:

Shumate.MapLayer

Signal Details

Shumate.MapLayer.signals.symbol_clicked(map_layer, event)
Signal Name:

symbol-clicked

Flags:

RUN_LAST

Parameters:

Emitted when a symbol in the map layer is clicked.

New in version 1.1.

Property Details

Shumate.MapLayer.props.map_source
Name:

map-source

Type:

Shumate.MapSource

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Map Source