@geoblocks/edittrack
    Preparing search index...
    interface Options {
        addControlPointCondition?: (mbe: MapBrowserEvent) => boolean;
        addLastPointCondition?: (mbe: MapBrowserEvent) => boolean;
        deleteCondition?: (mbe: MapBrowserEvent, type: string) => boolean;
        densifier?: Densifier;
        drawExtent?: Extent;
        drawMaskColor?: string;
        hitTolerance: number;
        map: Map;
        profiler: Profiler;
        router: Router;
        shadowTrackLayer?: VectorLayer<VectorSource<Feature<Geometry>>>;
        snapper?: Snapper;
        style: StyleLike | FlatStyleLike;
        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

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

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

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

    densifier?: Densifier

    The densifier to use to modify the line geometries If not provided, the track will not be densified.

    drawExtent?: Extent

    Drawing area extent.

    drawMaskColor?: string

    Drawing mask color. CSS string

    hitTolerance: number

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

    map: Map
    profiler: Profiler

    The profiler instance to add 3d coordinates to segments.

    router: Router

    The router instance to create snapped segments on the network.

    shadowTrackLayer?: VectorLayer<VectorSource<Feature<Geometry>>>

    Optional layer to display a shadow of the track has it was when entering edit mode.

    snapper?: Snapper

    The optional snapper instance to snap control points on the network. If this is not provided, the control points will be lazily snapped during segment snapping.

    style: StyleLike | FlatStyleLike
    trackLayer: VectorLayer<VectorSource<Feature<Geometry>>>

    Vector layer where the track, control points and POIs are created.