TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ClearEventStateOptions

    ClearEventStateOptions: ByIdOrIndex & { show?: boolean }

    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.

    Type Declaration

    • Optionalshow?: boolean

      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
      
    // Remove all event states from a feature
    const options: ClearEventStateOptions = {
    index: 0,
    show: true
    };

    // Clear without immediately rendering
    const batchOptions: ClearEventStateOptions = {
    index: 5,
    show: false
    };