Parameters to clean the event state from a specific feature.
Removes event states from a feature, returning it to its normal appearance. Useful for deselecting or unhighlighting features programmatically.
Optional
Whether to show the feature after cleaning the event state.
Set to false only if you want to keep manipulating features before showing them, which can improve performance for batch updates.
true Copy
true
// Remove all event states from a featureconst options: CleanEventStateOptions = { index: 0, show: true};// Clean without immediately renderingconst batchOptions: CleanEventStateOptions = { index: 5, show: false}; Copy
// Remove all event states from a featureconst options: CleanEventStateOptions = { index: 0, show: true};// Clean without immediately renderingconst batchOptions: CleanEventStateOptions = { index: 5, show: false};
Parameters to clean the event state from a specific feature.
Removes event states from a feature, returning it to its normal appearance. Useful for deselecting or unhighlighting features programmatically.