remove Feature State
fun removeFeatureState(sourceId: String, sourceLayerId: String? = null, featureId: String, stateKey: String? = null)
Content copied to clipboard
Remove entries from a feature state map.
Remove a specified entry or all entries from a feature's state map, 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().
Parameters
source Id
Style source identifier.
source Layer Id
Style source layer identifier (for multi-layer sources such as vector sources).
feature Id
Identifier of the feature whose state should be removed.
state Key
Key of the entry to remove. If empty, the entire state is removed.