Type Alias TEvents

TEvents: {
    blue-dot-error: TBlueDotEvents["error"];
    blue-dot-position-update: TBlueDotEvents["position-update"];
    blue-dot-state-change: TBlueDotEvents["state-change"];
    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

  • blue-dot-error: TBlueDotEvents["error"]

    Emitted when the Blue Dot encounters an error.

  • blue-dot-position-update: TBlueDotEvents["position-update"]

    Emitted when the Blue Dot's position is updated.

  • blue-dot-state-change: TBlueDotEvents["state-change"]

    Emitted when the Blue Dot's state changes.

  • 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).