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 of a feature from a featureset asynchronously.
Return
A Cancelable object that could be used to cancel the pending query.
Parameters
The featureset identifier.
The feature identifier of the feature whose state should be queried.
Optional feature namespace. Defaults to NULL. Namespace represents the feature namespace defined by the Selector within a featureset to which this feature belongs. If the underlying source is the same for multiple selectors within a featureset, the same featureNamespace should be used across those selectors. Defining a featureNamespace value for the Selector is recommended, especially when multiple selectors exist in a featureset, as it can enhance the efficiency of feature operations.
The QueryFeatureStateCallback called when the query completes.