TomTom Maps for JavaScript
    Preparing search index...

    Type Alias SupportsEvents

    Properties part for an object that can have event state.

    Features with this type can store their current event state (click, hover, etc.), which is used for styling and interaction handling.

    This is typically mixed into feature properties to track interactive states. The SDK automatically manages these states based on user interactions.

    // Feature with click state
    const featureProps: SupportsEvents = {
    eventState: 'click'
    };

    // Feature with hover state
    const hoveredProps: SupportsEvents = {
    eventState: 'hover'
    };

    // Feature with no event state
    const normalProps: SupportsEvents = {};
    type SupportsEvents = {
        eventState?: EventType;
    }
    Index

    Properties

    Properties

    eventState?: EventType

    Current event state of the feature.

    • undefined: No active event state (normal appearance)
    • Event type: Active state that affects styling and behavior

    This property is automatically managed by the SDK based on user interactions and programmatic state changes.