On this page

Type Alias TilePreloadProgressCallback

TilePreloadProgressCallback: (
    done: number,
    total: number,
    tileID?: string | null,
) => void

Called after each tile fetch attempt during preloading.

Type Declaration

    • (done: number, total: number, tileID?: string | null): void
    • Parameters

      • done: number

        Number of tiles attempted so far (loaded or failed)

      • total: number

        Total number of tiles to preload

      • OptionaltileID: string | null

        ID of the tile just attempted, in "z/x/y" format

      Returns void

API Key Usage: Each tile fetch counts against your MapTiler Cloud API key quota.

Was this helpful?
SDK JS
Reference
TilePreloadProgressCallback