Class PanoramaFeatureHighlight

Interaction class that handles highlighting of panorama tiles on mouse move.

This interaction listens for mouse move events over a PanoramaMap and highlights panorama features under the cursor. When the mouse moves to a different feature, the previous feature is unhighlighted and the new one is highlighted. When the mouse leaves all features, the last highlighted feature is unhighlighted.

const highlightInteraction = new PanoramaFeatureHighlight();
map.addInteraction(highlightInteraction);
  • Uses throttling (50ms) to improve performance during rapid mouse movements
  • Only works with PanoramaMap instances
  • Prevents race conditions with internal processing flag
  • Automatically cleans up highlights when destroyed

Hierarchy (view full)

Constructors

Methods

  • Sets the interaction active. Use boolean (true|false) to toggle default behavior. Pass it a bitmask of EventType to change the active state. Call without arguments to reset the default active, modification key and pointer Key behavior

    Parameters

    • Optionalactive: number | boolean

    Returns void

Properties

active: EventType

The current active bitmask for EventType

id: string

A unique identifier for this interaction

modificationKey: ModificationKeyType

The current active ModificationKeyType

pointerKey: PointerKeyType

The currently active PointerKeyType