get Feature State
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
The style source identifier.
The style source layer identifier (for multi-layer sources such as vector sources).
The feature identifier of the feature whose state should be queried.
The query feature state callback
called when the query completes.
Gets the state map for given FeaturesetFeature.
Return
A Cancelable object that could be used to cancel the pending query.
Parameters
typed FeaturesetFeature obtained from MapInteraction or needed overload of queryRenderedFeatures.
The FeatureStateCallback called when the query completes.
Gets the state map of a feature from a featureset asynchronously.
This API should be used with caution as Feature defined by the FeaturesetFeatureId.featureId only might not be compatible with provided FeaturesetFeatureId.featureNamespace and descriptor and thus API behaviour might be unexpected. It is safer to use overloaded getFeatureState taking FeaturesetFeature.
Return
A Cancelable object that could be used to cancel the pending query.
Parameters
TypedFeaturesetDescriptor object representing either a featureset or a single layer.
identifier holding feature id and feature namespace.
The FeatureStateCallback called when the query completes.