Type alias TEvents

TEvents: {
    camera-change: CameraTransform;
    click: {
        coordinate: Coordinate;
        floors: Floor[];
        labels: Label[];
        markers: Marker[];
        objects: MapObject[];
        spaces: Space[];
    };
    floor-change: {
        floor: Floor;
        reason?: string;
    };
    floor-change-start: {
        floor: Floor;
    };
    outdoor-view-loaded: undefined;
    user-interaction-end: undefined;
    user-interaction-start: undefined;
}

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: {
        coordinate: Coordinate;
        floors: Floor[];
        labels: Label[];
        markers: Marker[];
        objects: MapObject[];
        spaces: Space[];
    }

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

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

    Emitted after the floor change is complete.

    • floor: Floor
    • Optional reason?: string
  • floor-change-start: {
        floor: Floor;
    }

    Emitted when a floor change starts.

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