Parameters to clear the event state of a specific feature.
Clearing returns the feature to its normal appearance. Use it to deselect or unhighlight features programmatically.
Optional
Whether to show the feature after clearing the event state.
Set it to false only to keep changing features before showing them. This can speed up 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.
Clearing returns the feature to its normal appearance. Use it to deselect or unhighlight features programmatically.