SimpleMap
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
A ready-to-use map Widget
.If you want to use your own implementation,
you can look at the Map
widget.
The simple map contains a zoom widget, a License
at the bottom,
a Scale
and a Compass
.
Constructors
Methods
- class SimpleMap
- add_overlay_layer(layer: Layer) None
Adds a map layer as an overlay on top of the base map.
- Parameters:
layer – a
Layer
to add
- get_viewport() Viewport
Gets the map’s viewport, needed for constructing map layers that will be added to it.
- remove_overlay_layer(layer: Layer) None
Removes a layer from the map.
- Parameters:
layer – a
Layer
that was added to the map previously
Properties
Signals
- class SimpleMap.signals
- symbol_clicked(event: SymbolEvent) None
Emitted when a symbol in the base map layer (not in overlay layers) is clicked.
Added in version 1.1.
- Parameters:
event – a
SymbolEvent
with details about the clicked symbol.