@geoblocks/edittrack
    Preparing search index...
    interface Options {
        addControlPointCondition?: (mbe: MapBrowserEvent) => boolean;
        addLastPointCondition?: (mbe: MapBrowserEvent) => boolean;
        deleteCondition?: (mbe: MapBrowserEvent, type: FeatureType) => boolean;
        drawExtent?: Extent;
        hitTolerance: number;
        map: Map;
        style: StyleLike | FlatStyleLike;
        trackData: default;
        trackLayer: VectorLayer<VectorSource<Feature<Geometry>>>;
    }
    Index

    Properties

    addControlPointCondition?: (mbe: MapBrowserEvent) => boolean

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

    addLastPointCondition?: (mbe: MapBrowserEvent) => boolean

    Default is to add a new point on click

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

    Default is to delete control points and pois on click

    drawExtent?: Extent

    Drawing outside extent will not be possible

    hitTolerance: number

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

    map: Map
    style: StyleLike | FlatStyleLike
    trackData: default
    trackLayer: VectorLayer<VectorSource<Feature<Geometry>>>