Taos API Reference
    Preparing search index...

    Interface VectorTileOptions

    Options for a VectorTileSource. Provide template for a direct {z}/{x}/{y} URL, or tilejson to resolve the template (+ max zoom) from a TileJSON document at init — many hosts (e.g. OpenFreeMap) put a rotating version segment in the real tile path, so the bare path is a stub; the TileJSON is the source of truth.

    interface VectorTileOptions {
        label: string;
        attribution: string;
        template?: string;
        tilejson?: string;
        maxZoom?: number;
        minZoom?: number;
        buildingLayer?: string;
    }
    Index

    Properties

    label: string
    attribution: string
    template?: string

    Tile URL template with {z}/{x}/{y} (.pbf/.mvt).

    tilejson?: string

    TileJSON URL; its tiles[0] becomes the template and maxzoom the refinement cap.

    maxZoom?: number

    Deepest zoom the source serves buildings at (refinement stops here). Default 14.

    minZoom?: number

    Shallowest zoom to fetch buildings at — coarser tiles render nothing. Default 13.

    buildingLayer?: string

    Layer name carrying building polygons. Default 'building'.