@maplibre/native-ffi
    Preparing search index...

    Interface CustomGeometrySourceOptions

    The callbacks and options of a custom geometry source.

    Zoom levels are whole numbers from 0 to 32.

    See mln_custom_geometry_source_options in the C API reference.

    interface CustomGeometrySourceOptions {
        buffer?: number;
        cancelTile?: (
            map: MapHandle,
            sourceId: string,
            tileId: CanonicalTileId,
        ) => void;
        clip?: boolean;
        fetchTile: (
            map: MapHandle,
            sourceId: string,
            tileId: CanonicalTileId,
        ) => void;
        maxZoom?: number;
        minZoom?: number;
        tileSize?: number;
        tolerance?: number;
        wrap?: boolean;
    }
    Index
    buffer?: number

    The width in pixels of the margin around a tile that holds geometry from beyond its edges. buffer times 8192 / tile_size must be at most 65535.

    cancelTile?: (map: MapHandle, sourceId: string, tileId: CanonicalTileId) => void
    clip?: boolean

    Whether to cut geometry at the outer edge of a tile's margin.

    fetchTile: (map: MapHandle, sourceId: string, tileId: CanonicalTileId) => void
    maxZoom?: number
    minZoom?: number
    tileSize?: number

    The width of a tile in pixels, a power of two no larger than 8192.

    tolerance?: number

    How far, in pixels, simplified geometry can stray from the original.

    wrap?: boolean

    Whether to wrap geometry that crosses the antimeridian.