IFClite TypeScript API
    Preparing search index...

    Interface BuildSiteContextOptions

    interface BuildSiteContextOptions {
        buildings?: BuildingsOptions;
        centre: MapPoint;
        geodata: SiteContextGeodata;
        layers: SiteContextLayerKind[];
        onLayer?: (layer: SiteContextLayer) => void;
        onProgress?: (progress: SiteContextProgress) => void;
        radius: number;
        resolution?: number | "auto";
        signal?: AbortSignal;
        subject?: { egid?: string; egrid?: string; footprint?: MapPoint[][] };
    }
    Index
    buildings?: BuildingsOptions

    The buildings layer's reader, network and caps (see BuildingsOptions).

    centre: MapPoint

    Centre of the site in EPSG:2056.

    onLayer?: (layer: SiteContextLayer) => void

    Called once per finished layer, in document order.

    onProgress?: (progress: SiteContextProgress) => void
    radius: number

    Half the side of the square site, in metres.

    resolution?: number | "auto"

    Terrain node spacing in metres, or 'auto' (the default; see autoResolution).

    signal?: AbortSignal
    subject?: { egid?: string; egrid?: string; footprint?: MapPoint[][] }

    The building the context is for. footprint (EPSG:2056 rings) moves the parcel lookup to its centroid; egrid takes the parcel by its EGRID instead of by point. In the buildings layer, the neighbour whose EGID equals egid is marked subject: true; without an EGID match, the one whose footprint overlaps footprint most (at least SUBJECT_MIN_OVERLAP of the smaller of the two areas).