@maplibre/geojson-vt
    Preparing search index...

    Type Alias GeoJSONVTOptions

    type GeoJSONVTOptions = {
        buffer?: number;
        cluster?: boolean;
        clusterOptions?: Omit<SuperclusterOptions, "coordinates" | "wrap">;
        coordinates?: GeoJSONVTCoordinatesType;
        debug?: number;
        extent?: number;
        generateId?: boolean;
        indexMaxPoints?: number;
        indexMaxZoom?: number;
        lineMetrics?: boolean;
        maxZoom?: number;
        promoteId?: string | null;
        tolerance?: number;
        updateable?: boolean;
        wrap?: boolean;
    }
    Index
    buffer?: number

    Tile buffer on each side

    64
    
    cluster?: boolean

    Enable Supercluster for point features. Each position of a MultiPoint feature is clustered as a point of its own. Other geometry types are left out.

    false
    
    clusterOptions?: Omit<SuperclusterOptions, "coordinates" | "wrap">

    Options for the Supercluster point clustering algorithm. coordinates and wrap come from the options above.

    The space the positions are in. 'lngLat' is longitude and latitude, which web mercator puts in the square from 0 to 1 that tile 0/0/0 covers, with latitudes beyond ~85.05 degrees clamped onto its top and bottom. 'unitSquare' is x and y in that square already, y growing downward, taken as they are, for data in another projection. getData and the cluster methods return positions in the same space.

    'lngLat'
    
    debug?: number

    Logging level (0, 1 or 2)

    0
    
    extent?: number

    Tile extent

    4096
    
    generateId?: boolean

    Whether to generate feature ids. Cannot be used with promoteId

    false
    
    indexMaxPoints?: number

    Max number of points per tile in the tile index

    100000
    
    indexMaxZoom?: number

    Max zoom in the tile index

    5
    
    lineMetrics?: boolean

    Whether to calculate line metrics

    false
    
    maxZoom?: number

    Max zoom to preserve detail on

    14
    
    promoteId?: string | null

    Name of a feature property to be promoted to feature.id

    tolerance?: number

    Simplification tolerance (higher means simpler)

    3
    
    updateable?: boolean

    Whether geojson can be updated (with caveat of a stored simplified copy)

    false
    
    wrap?: boolean

    Whether the world wraps around the antimeridian. With true, features near the left or right edge are copied across it, and the tiles at either edge include what lies past it. With false, the world is the square and ends at its edges. Features are cut at the tile buffer around it, points outside it are left out of the clusters, and getTile returns null outside it. geoJSONToTile doesn't wrap unless this is true.

    true