Mappedin JS - v6.14.0
    Preparing search index...

    Class PointOfInterest

    A class representing point of interest data within the map.

    Points of interest are used to represent specific points on the map with additional information(e.g. ATMs, Water Fountains).

    Hierarchy (View Summary)

    • DetailedMapData<FeatureCollection<Point, SpaceProperties>["features"][number]>
      • PointOfInterest

    Implements

    Index

    Properties

    id: string

    The identity of the map data.

    Accessors

    • get description(): string

      Gets the description of the map feature.

      Returns string

      The description of the map feature, or an empty string if no description exists.

    • get externalId(): string

      Gets the external identifier of the map feature.

      Returns string

      The external ID of the map feature, or an empty string if no external ID exists.

    • get floor(): Floor

      Gets the Floor object associated with the POI.

      Returns Floor

      The floor object.

      Will throw an error if the floor is not found.

    • get geoJSON(): { geometry: Point; properties: null; type: "Feature" }

      Gets the underlying GeoJSON Feature representation of this PointOfInterest.

      Returns { geometry: Point; properties: null; type: "Feature" }

    • get images3D(): Image3DView[]

      Gets the 3D images anchored to this point of interest.

      Returns Image3DView[]

      An array of Image3DView objects representing 3D images attached to this POI.

    • get name(): string

      Gets the name of the map feature.

      Returns string

      The name of the map feature.

    Methods

    • Serializes the POI data to JSON.

      Returns {
          __type: string;
          coordinate: {
              __type: string;
              floorId: string | undefined;
              latitude: number;
              longitude: number;
              verticalOffset: number;
          };
          floor: string;
          id: string;
          name: string;
      }

      An object representing the POI.

    • Checks if the provided instance is of type PointOfInterest.

      Parameters

      • instance: object

        The instance to check.

      Returns instance is PointOfInterest

      True if the instance is a PointOfInterest, false otherwise.