SDK JS
    Preparing search index...

    Interface LepccMapLibreLayerOptions

    Configuration for LepccMapLibreLayer. id and anchor are required, plus one source — either a url to the .lepcc container or an already-decoded preloaded model; everything else has a default. placement orients and seats the cloud (LiDAR is Z-up natively, so it usually only needs anchorPoint), point carries the initial render options, and onClassifications fires once the cloud is in with the LAS codes it actually contains — the input a class show/hide UI needs.

    interface LepccMapLibreLayerOptions {
        anchor: GeoAnchor;
        decoder?: Decoder;
        id: string;
        onClassifications?: (classes: ClassificationInfo[]) => void;
        onLoaded?: () => void;
        placement?: ModelPlacement;
        point?: Partial<PointCloudOptions>;
        preloaded?: { model: DecodedModel; tiles: readonly DecodedTile[] };
        url?: string;
        wasmInit?: WasmHostInit;
    }
    Index

    Properties

    anchor: GeoAnchor

    Where the model sits (lng/lat/altitude). Which local point lands here is placement.anchorPoint — top/middle/bottom, origin, or an explicit point (default 'center': the cloud's robust median centers on the anchor).

    decoder?: Decoder

    Override the decoder (default: in-process LepccContainerDecoder).

    id: string

    Layer id.

    onClassifications?: (classes: ClassificationInfo[]) => void

    Fired once the point cloud has loaded, with the LAS classification codes it contains (code/label/count) — populate a class show/hide checklist from it.

    onLoaded?: () => void

    Notified once the cloud has streamed in.

    placement?: ModelPlacement

    Friendly placement (ModelPlacement) — LiDAR is Z-up natively, so the default upAxis: 'z' needs no override; 'bottom-center' seats the cloud's robust base on the map surface. Tune at runtime with LepccMapLibreLayer.setPlacement.

    point?: Partial<PointCloudOptions>

    Initial point-cloud render options (color mode, hidden classes, point size, …); merged over the defaults.

    preloaded?: { model: DecodedModel; tiles: readonly DecodedTile[] }

    Render already-decoded tiles instead of fetching a URL (in-memory source).

    url?: string

    URL of the .lepcc (LPC1 container) file to load. Omit when supplying preloaded.

    wasmInit?: WasmHostInit

    Cross-origin wasm bootstrap for the default LepccContainerDecoder (point wasmInit at your hosted turbolepcc wasm). Ignored when a custom decoder is supplied.