GeoLeaf Core API - v3.0.0
    Preparing search index...

    Engine-agnostic description of a vector-tile layer to add via IMapAdapter.addVectorTileLayer. Socle B.1 — lets the vector-tiles capability describe what to render without importing MapLibre builders.

    interface VectorTileLayerSpec {
        tileUrl: string;
        sourceLayer: string;
        geometryType: string;
        zIndex?: number;
        source?: {
            minZoom?: number;
            maxNativeZoom?: number;
            scheme?: string;
            bounds?: number[];
        };
        subLayerZoom?: { minZoom?: number; maxZoom?: number };
        style?: VectorTileStyleInput;
    }
    Index

    Properties

    tileUrl: string

    Full tile URL template (.../{z}/{x}/{y}.pbf).

    sourceLayer: string

    MVT source-layer name to render.

    geometryType: string

    Expected geometry: "point" | "polygon" | "line" | … | "fill-extrusion" | "mixed".

    zIndex?: number

    Paint z-order hint (default 0).

    source?: {
        minZoom?: number;
        maxNativeZoom?: number;
        scheme?: string;
        bounds?: number[];
    }

    Vector source bounds.

    subLayerZoom?: { minZoom?: number; maxZoom?: number }

    Per-sub-layer zoom constraints.

    Raw GeoLeaf style — normalised by the adapter.