Type Alias PreloadTilesForBoundsOptions

PreloadTilesForBoundsOptions: TilePreloadOptions & {
    bounds: LngLatBoundsLike;
    maxZoom: number;
    minZoom: number;
}

Options for preloading all tiles within a geographic bounds across a range of zoom levels.

Type Declaration

  • bounds: LngLatBoundsLike

    The geographic bounds to preload tiles for.

  • maxZoom: number

    Maximum zoom level to preload (inclusive).

  • minZoom: number

    Minimum zoom level to preload (inclusive).

API Key Usage: The number of tiles grows exponentially with zoom level. For example, a city-scale area at zoom 12–15 can result in thousands of tile requests per source. Each request counts against your MapTiler Cloud API key quota.

Was this helpful?