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

    Class Coordinate

    Class representing a pseudo-mercator coordinate.

    The Pseudo-Mercator projection is a type of cylindrical and conformal map projection. It is identified as EPSG:3857 (https://epsg.io/3857). This projection is a modified version of the traditional Mercator projection, which is commonly used in marine navigation.

    Implements

    Index

    Constructors

    Properties

    floorId?: string

    The floor ID of the coordinate.

    id: string = ...
    latitude: number

    The latitude of the coordinate.

    longitude: number

    The longitude of the coordinate.

    verticalOffset: number

    The vertical position of the coordinate, offset from the floor.

    Accessors

    • get geoJSON(): Feature<Point, null>

      Gets the underlying GeoJSON Feature representation of this Coordinate.

      Returns Feature<Point, null>

    Methods

    • Checks if this coordinate is equal to another coordinate.

      Parameters

      • coordinate: Coordinate

        The coordinate to compare with.

      Returns boolean

      True if coordinates are equal, false otherwise.

    • Returns Point

      Use geoJSON instead.

    • Serializes the coordinate data to JSON.

      Returns {
          __type: string;
          floorId: string | undefined;
          latitude: number;
          longitude: number;
          verticalOffset: number;
      }

      An object representing the coordinate.

    • Checks if the provided instance is of type Coordinate.

      Parameters

      • instance: object

        The instance to check.

      Returns instance is Coordinate

      True if the instance is a Coordinate, false otherwise.