@geoblocks/edittrack
    Preparing search index...

    Class default<POIMeta>

    Type Parameters

    • POIMeta
    Index

    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

    • Delete a control point and notify track change listeners.

      Parameters

      • point: Feature<Point>

      Returns Promise<void>

    • Delete a POI and notify track change listeners.

      Parameters

      • index: number

      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

    • Remove registered event listener.

      Parameters

      • fn: Function

      Returns void

    • Remove registered event listener.

      Parameters

      • fn: Function

      Returns void

    • Parameters

      • features: Feature<LineString | Point>[]

      Returns Promise<void>