TomTom Maps for JavaScript
    Preparing search index...

    Type Alias HoverEventType

    HoverEventType: "hover" | "long-hover"

    Subtype for hover events with timing distinction.

    • hover: Immediate hover when cursor enters a feature
    • long-hover: Triggered after hovering for a configured duration (typically 300-800ms)

    Long-hover is useful for showing detailed tooltips or previews without cluttering the UI during quick mouse movements.

    const quickHover: HoverEventType = 'hover';
    const sustainedHover: HoverEventType = 'long-hover';