Type Parameters

  • POIMeta

Constructors

Properties

snapping: boolean = true

Accessors

  • get trackLayer(): VectorLayer<VectorSource<Feature<Geometry>>>
  • Returns VectorLayer<VectorSource<Feature<Geometry>>>

Methods

  • Add new event listener to be notified on track changes.

    Parameters

    • fn: Function

    Returns void

  • Add new event listener to be notified on track hover.

    Parameters

    • fn: Function

    Returns void

  • The library creates and keeps the control points consistently with the segments. It is generally a bad idea to update control points manually.

    Returns readonly Feature<Point>[]

    the internal control points as a readonly array

  • See addPOI, deletePOI, updatePOIMeta`. The library maintains the POI indexes and geometries so don't modify them.

    Returns readonly Feature<Point>[]

    the internal POIs as a readonly array

  • The library manages the segments together with the control points. It is probably a bad idea to update segments manually.

    Returns readonly Feature<LineString>[]

    the internal segments as a readonly array