Parameters to clear the event state of 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 clearing 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: ClearEventStateOptions = { index: 0, show: true};// Clear without immediately renderingconst batchOptions: ClearEventStateOptions = { index: 5, show: false}; Copy
// Remove all event states from a featureconst options: ClearEventStateOptions = { index: 0, show: true};// Clear without immediately renderingconst batchOptions: ClearEventStateOptions = { index: 5, show: false};
Parameters to clear the event state of a specific feature.
Removes event states from a feature, returning it to its normal appearance. Useful for deselecting or unhighlighting features programmatically.