getFeatureState

suspend fun <FS : FeatureState> getFeatureState(featuresetHolder: FeaturesetHolder<FS>, featureId: String, featureNamespace: String? = null): FS

Gets the state map of a feature from a featureset asynchronously.

Return

A concrete instance of FeatureState.

Parameters

featuresetHolder

FeaturesetHolder object representing either a featureset or a single layer.

featureId

The feature identifier of the feature whose state should be queried.

featureNamespace

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.