SymbolEvent
Added in version 1.1.
Superclasses: Object
Implemented Interfaces: Location
- Constructors:
SymbolEvent(**properties)
Methods
- class SymbolEvent
- get_feature_id() str
Gets the feature ID as specified in the data source. The meaning of the ID, if any, is up to the source.
Feature IDs in Mapbox Vector Tile format are integers, but they are formatted as a string here for futureproofing.
Added in version 1.1.
- get_layer() str
Gets the name of the layer the clicked symbol is in, as named in the vector stylesheet.
Note that this is distinct from the name of the layer in the vector tile schema. Some styles have multiple symbol layers derived from the same data source layer.
Added in version 1.1.