Layer

class Layer(**properties: Any)

Superclasses: Widget, InitiallyUnowned, Object

Subclasses: MapLayer, MarkerLayer, PathLayer

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

Every layer (overlay that moves together with the map) has to inherit this class and implement its virtual methods.

You can use the same layer to display many types of maps. In Shumate they are called map sources. You can change the map_source property at any time to replace the current displayed map.

Methods

class Layer
get_viewport() Viewport

Gets the Viewport used by this layer.

Properties

class Layer
props.viewport: Viewport

Virtual Methods

class Layer
do_get_debug_text() str | None

Returns a string to show in the debug overlay, which can be enabled in the GTK inspector.

Fields

class Layer
parent_instance