Class
ShumateSymbolEvent
Description [src]
final class Shumate.SymbolEvent : GObject.Object {
/* No available fields */
}
An object containing the details of a map feature that has been clicked.
It is the argument of the ShumateMapLayer::symbol-clicked and
ShumateSimpleMap::symbol-clicked signals.
When vector maps are rendered, they may contain labels and icons. When one of these symbols is clicked, these signals are emitted to give the application access to the original location and details of the map feature.
ShumateSymbolEvent implements ShumateLocation so you can get the latitude
and longitude of the feature that was clicked.
| Available since: | 1.1 |
Instance methods
shumate_symbol_event_get_feature_id
Gets the feature ID as specified in the data source. The meaning of the ID, if any, is up to the source.
Available since: 1.1
shumate_symbol_event_get_keys
Gets a list of the keys of the source feature’s tags.
Available since: 1.1
shumate_symbol_event_get_layer
Gets the name of the layer the clicked symbol is in, as named in the vector stylesheet.
Available since: 1.1
shumate_symbol_event_get_source_layer
Gets the name of the source layer the clicked feature is in, as named in the vector tile schema.
Available since: 1.1
Methods inherited from ShumateLocation (3)
shumate_location_get_latitude
Gets the latitude coordinate in degrees.
shumate_location_get_longitude
Gets the longitude coordinate in degrees.
shumate_location_set_location
Sets the coordinates of the location.
Properties
Shumate.SymbolEvent:feature-id
The ID of the feature that this event pertains to, as it was given in the data source.
Available since: 1.1
Shumate.SymbolEvent:layer
The ID of the style layer of the symbol that this event pertains to.
Available since: 1.1
Shumate.SymbolEvent:source-layer
The ID of the source layer of the symbol that this event pertains to.
Properties inherited from ShumateLocation (2)
Shumate.Location:latitude
The latitude coordonate in degrees.
Shumate.Location:longitude
The longitude coordonate in degrees.