getFeatureState

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

featureId

Identifier of the feature whose state should be queried.

sourceId

Style source identifier.

sourceLayerId

Style source layer identifier (for multi-layer sources such as vector sources).

fun getFeatureState(sourceId: String, sourceLayerId: String?, featureId: String, callback: QueryFeatureStateCallback)