remove Feature State
@JvmOverloads()
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 migth not be immediately visible using getStateFeature().
Parameters
featureId
Identifier of the feature whose state should be removed.
sourceId
Style source identifier.
sourceLayerId
Style source layer identifier (for multi-layer sources such as vector sources).
stateKey
Key of the entry to remove. If empty, the entire state is removed.