get Feature State
fun getFeatureState(sourceId: String, sourceLayerId: String? = null, featureId: String, callback: QueryFeatureStateCallback)
Content copied to clipboard
Get the state map of a feature within a style source.
Note that updates to feature state are asynchronous, so changes made by other methods might not be immediately visible.
Return
Feature's state map or an empty map if the feature could not be found.
Parameters
source Id
Style source identifier.
source Layer Id
Style source layer identifier (for multi-layer sources such as vector sources).
feature Id
Identifier of the feature whose state should be queried.