Shumate.SimpleMap¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Compass |
||
r |
License |
||
r |
Map |
||
r/w/en |
Map source |
||
r |
Scale |
||
r/w/en |
Show zoom buttons |
||
r |
Viewport |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when a symbol in the base map layer (not in overlay layers) is clicked. |
Fields¶
- Inherited:
Class Details¶
- class Shumate.SimpleMap(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A ready-to-use map [class`Gtk`.Widget].If you want to use your own implementation, you can look at the [class`Shumate`.Map] widget.
The simple map contains a zoom widget, a [class`Shumate`.License] at the bottom, a [class`Shumate`.Scale] and a [class`Shumate`.Compass].
- classmethod new()¶
- Return type:
- add_overlay_layer(layer)¶
- Parameters:
layer (
Shumate.Layer
) – a [class`Layer`] to add
Adds a map layer as an overlay on top of the base map.
- get_compass()¶
- Returns:
a [class`Compass`]
- Return type:
Gets the compass widget for the map.
- get_license()¶
- Returns:
a [class`License`]
- Return type:
Gets the license widget for the map.
- get_map()¶
- Returns:
a [class`Map`]
- Return type:
Gets the [class`SimpleMap`]’s underlying [class`Map`].
- get_map_source()¶
- Returns:
a [class`MapSource`]
- Return type:
Gets the map source for the current base layer.
- get_scale()¶
- Returns:
a [class`Scale`]
- Return type:
Gets the scale widget for the map.
- get_show_zoom_buttons()¶
-
Gets whether or not the zoom buttons are shown.
- get_viewport()¶
- Returns:
a [class`Viewport`]
- Return type:
Gets the map’s viewport, needed for constructing map layers that will be added to it.
- insert_overlay_layer(layer, idx)¶
- Parameters:
layer (
Shumate.Layer
) –idx (
int
) –
- remove_overlay_layer(layer)¶
- Parameters:
layer (
Shumate.Layer
) – a [class`Layer`] that was added to the map previously
Removes a layer from the map.
- set_map_source(map_source)¶
- Parameters:
map_source (
Shumate.MapSource
orNone
) – a [class`MapSource`]
Sets the source for the base map.
Signal Details¶
- Shumate.SimpleMap.signals.symbol_clicked(simple_map, event)¶
- Signal Name:
symbol-clicked
- Flags:
- Parameters:
simple_map (
Shumate.SimpleMap
) – The object which received the signalevent (
Shumate.SymbolEvent
) – a [class`SymbolEvent`] with details about the clicked symbol.
Emitted when a symbol in the base map layer (not in overlay layers) is clicked.
New in version 1.1.
Property Details¶
- Shumate.SimpleMap.props.compass¶
- Name:
compass
- Type:
- Default Value:
- Flags:
Compass
- Shumate.SimpleMap.props.license¶
- Name:
license
- Type:
- Default Value:
- Flags:
License
- Shumate.SimpleMap.props.map¶
- Name:
map
- Type:
- Default Value:
- Flags:
Map
- Shumate.SimpleMap.props.map_source¶
- Name:
map-source
- Type:
- Default Value:
- Flags:
Map source
- Shumate.SimpleMap.props.scale¶
- Name:
scale
- Type:
- Default Value:
- Flags:
Scale
- Shumate.SimpleMap.props.show_zoom_buttons¶
- Name:
show-zoom-buttons
- Type:
- Default Value:
- Flags:
Show zoom buttons
- Shumate.SimpleMap.props.viewport¶
- Name:
viewport
- Type:
- Default Value:
- Flags:
Viewport