featureState constant
String
const featureState
Retrieves a property value from the current feature's state. Returns
null if the requested property is not present on the feature's state.
A feature's state is not part of the GeoJSON or vector tile data, and
must be set programmatically on each feature. Features are identified
by their id
attribute, which must be an integer or a string that can
be cast to an integer. Note that "feature-state"
can only be used
with paint properties that support data-driven styling.
Sdk Support: basic functionality with js
Implementation
static const featureState = "feature-state";