Georeferencing API
    Preparing search index...

    Interface BorrowedReference

    Use a vector layer already owned by the host. The package neither adds/removes this layer nor loads, clears or disposes its source.

    interface BorrowedReference {
        id: string;
        kind: "existing-vector";
        label: string;
        layer: VectorLayer<VectorSource<Feature<Geometry, { [x: string]: any }>>>;
        snapping?: SnapOptions;
    }

    Hierarchy (View Summary)

    Index
    id: string

    Unique stable provider ID within an editor binding.

    kind: "existing-vector"

    Discriminator for a borrowed host vector layer.

    label: string

    Human-readable provider name for loading/error feedback.

    layer: VectorLayer<VectorSource<Feature<Geometry, { [x: string]: any }>>>

    Host-owned layer whose existing features are read for snapping without duplicating network requests.

    snapping?: SnapOptions

    Opt into reference snapping and configure its tolerance.