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
do_get_debug_text(self) str | None#
get_viewport() Viewport#

Gets the Viewport used by this layer.

Properties#

class Layer
props.viewport: Viewport#

The type of the None singleton.

Virtual Methods#

class Layer
do_get_debug_text() str | None#

The type of the None singleton.

Fields#

class Layer
parent_instance#