MapLayer
Object Hierarchy:
Description:
[
CCode ( type_id =
"shumate_map_layer_get_type ()" ) ]
public class MapLayer :
Layer,
Accessible,
Buildable,
ConstraintTarget
A [class@Shumate.
Layer] implementation that fetches tiles from a [class@Shumate.MapSource] and draws them as a grid.
CSS nodes
`ShumatePoint` has a single CSS node with the name “map-layer”.
Content:
Properties:
Creation methods:
Methods:
- public unowned MapSource get_map_source ()
Gets the [class@MapSource] providing tiles for this map layer.
- public void refresh ()
Refreshes all tiles from the current map source.
- public void retry_failed ()
Attempts to reload any tiles in an error state.
- public void set_map_source (MapSource map_source)
Sets the [class@MapSource] that provides tiles for this map layer to
display.
Signals:
- public signal void map_loaded (bool errors)
Emitted when all the tiles in the map view are finished loading.
- public signal void symbol_clicked (SymbolEvent event)
Emitted when a symbol in the map layer is clicked.
- public signal void tile_error (Tile tile, Error error)
Emitted when a tile fails to load.
Inherited Members:
All known members inherited from class Shumate.Layer
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable