remove Feature State
Removes entries from a feature state object.
Remove a specified property or all property from a feature's state object, depending on the value of stateKey.
Note that updates to feature state are asynchronous, so changes made by this method might not be immediately visible using getStateFeature.
Return
A cancelable object that could be used to cancel the pending operation.
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 removed.
The key of the property to remove. If null, all feature's state object properties are removed.
The feature state operation callback called when the operation completes or ends.
Removes entries from a feature state based on interactiveFeature coming from an interaction callback.
Removes a specified property or all property from a feature's state object, depending on the value of stateKey.
Note that updates to feature state are asynchronous, so changes made by this method might not be immediately visible using getFeatureState.
Return
A Cancelable object that could be used to cancel the pending operation.
Parameters
The interactive feature coming from an interaction callback.
The key of the property to remove. If null, all feature's state object properties are removed.
The FeatureStateOperationCallback called when the operation completes or ends.
Removes entries from a feature state object.
Removes a specified property or all property from a feature's state object, depending on the value of stateKey.
Note that updates to feature state are asynchronous, so changes made by this method might not be immediately visible using getFeatureState.
Return
A Cancelable object that could be used to cancel the pending operation.
Parameters
FeaturesetHolder object representing either a featureset or a single layer.
The feature identifier of the feature whose state should be removed.
The key of the property to remove. If null, all feature's state object properties are removed.
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 FeatureStateOperationCallback called when the operation completes or ends.