Class 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.

Implements

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[];
    }

  • Checks if the provided instance is a Path.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is Path

    True if the instance is a Path, false otherwise.