Class Annotation

A class representing annotation data within the map.

Annotations are used to mark specific points or areas on the map with additional information. It includes some details on a map that may be relevant to safety or accessibility (e.g. Fire Extinguishers).

Hierarchy

  • default
    • Annotation

Properties

Accessors

Methods

Properties

id: string

identity of the map object

links: Hyperlink[] = []

Gets the links associated with this data type.

Returns

The links associated with this data type

Accessors

  • get floor(): Floor
  • Gets the Floor object associated with the annotation.

    Returns Floor

    The floor object.

    Throws

    Will throw an error if the floor is not found.

  • get group(): string
  • Gets the group of the annotation.

    Returns string

    The annotation group.

  • get type(): string
  • Gets the type of the annotation.

    Returns string

    The annotation type.

Methods

  • Converts the annotation information to a JSON object.

    Returns {
        coordinate: {
            floor: undefined | string;
            latitude: number;
            longitude: number;
        };
        group: string;
        id: string;
        type: string;
    }

    An object representing the annotation.

    • coordinate: {
          floor: undefined | string;
          latitude: number;
          longitude: number;
      }
      • floor: undefined | string
      • latitude: number
      • longitude: number
    • group: string
    • id: string
    • type: string
  • Checks if the provided instance is of type Annotation.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is Annotation

    True if the instance is an Annotation, false otherwise.