Type Alias TEvents

TEvents: {
    camera-change: CameraTransform;
    click: TClickPayload;
    floor-change: {
        floor: Floor;
        reason?: TFloorChangeReason;
    };
    floor-change-start: {
        floor: Floor;
    };
    hover: Omit<THoverPayload, "pointerEvent">;
    outdoor-style-loaded: undefined;
    outdoor-view-loaded: undefined;
    user-interaction-end: undefined;
    user-interaction-start: undefined;
} & TStackedMapsEvents

Defines the structure and types of events emitted in the context of the map.

Type declaration

  • camera-change: CameraTransform

    Emitted when the camera's view changes.

  • click: TClickPayload

    Emitted when the map is clicked or tapped on a touch screen.

  • floor-change: {
        floor: Floor;
        reason?: TFloorChangeReason;
    }

    Emitted after the floor change is complete.

    • floor: Floor
    • Optionalreason?: TFloorChangeReason
  • floor-change-start: {
        floor: Floor;
    }

    Emitted when a floor change starts.

  • hover: Omit<THoverPayload, "pointerEvent">

    Emitted when the map is hovered over with a mouse.

  • outdoor-style-loaded: undefined

    Emitted when the outdoor style is loaded or changed.

  • outdoor-view-loaded: undefined

    Emitted when the outdoor view is fully loaded and displayed.

  • user-interaction-end: undefined

    Emitted when a user interaction with the map ends.

  • user-interaction-start: undefined

    Emitted when a user interaction with the map starts (e.g., dragging the map).