get Feature State
abstract fun getFeatureState(sourceId: String, sourceLayerId: String? = null, featureId: String, callback: QueryFeatureStateCallback): Cancelable
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
A cancelable
object that could be used to cancel the pending query.
Parameters
source Id
The style source identifier.
source Layer Id
The style source layer identifier (for multi-layer sources such as vector sources).
feature Id
The feature identifier of the feature whose state should be queried.
callback
The query feature state callback
called when the query completes.