interface Options {
    addControlPointCondition?: ((mbe) => boolean);
    addLastPointCondition?: ((mbe) => boolean);
    deleteCondition?: ((mbe, type) => boolean);
    hitTolerance: number;
    map: Map;
    profiler: Profiler;
    router: Router;
    shadowTrackLayer?: VectorLayer<VectorSource<Feature<Geometry>>>;
    style: StyleLike | FlatStyleLike;
    trackLayer: VectorLayer<VectorSource<Feature<Geometry>>>;
}

Properties

addControlPointCondition?: ((mbe) => boolean)

In addition to the drag sequence, an optional condition to add a new control point to the track. Default is never.

Type declaration

    • (mbe): boolean
    • Parameters

      • mbe: MapBrowserEvent<UIEvent>

      Returns boolean

addLastPointCondition?: ((mbe) => boolean)

Condition to add a new last point to the track. Default is click.

Type declaration

    • (mbe): boolean
    • Parameters

      • mbe: MapBrowserEvent<UIEvent>

      Returns boolean

deleteCondition?: ((mbe, type) => boolean)

Condition to remove a point (control point or POI). Default is click.

Type declaration

    • (mbe, type): boolean
    • Parameters

      • mbe: MapBrowserEvent<UIEvent>
      • type: string

      Returns boolean

hitTolerance: number

Pixel tolerance for considering the pointer close enough to a segment for snapping.

map: Map
profiler: Profiler
router: Router
shadowTrackLayer?: VectorLayer<VectorSource<Feature<Geometry>>>
style: StyleLike | FlatStyleLike
trackLayer: VectorLayer<VectorSource<Feature<Geometry>>>