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

    Interface Path

    Class representing a path on the MapView.

    Paths are used to indicate a route on the map and can be added and removed using Paths.add and Paths.remove.

    interface Path {
        animation: Promise<void>;
        coordinates: Coordinate[];
        id: string;
        segments: PathSegment[];
        get distance(): number;
        toJSON(): {
            __type: string;
            coordinates: Coordinate[];
            id: string;
            segments: PathSegment[];
        };
    }

    Implements

    Index

    Properties

    Accessors

    Methods

    Properties

    animation: Promise<void>

    The promise that resolves when the current path animation is complete.

    coordinates: Coordinate[]

    The coordinates of the path.

    id: string

    The path's id

    segments: PathSegment[]

    The segments of the path.

    Accessors

    • get distance(): number

      The distance of the path in meters.

      Returns number

    Methods

    • Returns {
          __type: string;
          coordinates: Coordinate[];
          id: string;
          segments: PathSegment[];
      }