Shumate.Layer¶
- Subclasses:
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The viewport used to display the layer |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Shumate.Layer(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
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 [property`MapLayer`:py:data::map-source<Shumate.Layer.props.map_source>] property at any time to replace the current displayed map.
- get_viewport()¶
- Returns:
The
Shumate.Viewport
.- Return type:
Gets the
Shumate.Viewport
used by this layer.
Property Details¶
- Shumate.Layer.props.viewport¶
- Name:
viewport
- Type:
- Default Value:
- Flags:
The viewport used to display the layer