For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Type Alias TilePreloadOptions
type TilePreloadOptions = {
maxTiles?: number;
onError?: TilePreloadErrorCallback;
onProgress?: TilePreloadProgressCallback;
}
maxTiles?: number;
onError?: TilePreloadErrorCallback;
onProgress?: TilePreloadProgressCallback;
}
Properties
OptionalmaxTiles
maxTiles?: number
Maximum number of tiles to fetch across all sources. Tiles beyond this
limit are silently dropped. Defaults to 512.
OptionalonError
Called when a tile fails to load.
OptionalonProgress
Called after each tile fetch attempt, whether it succeeded or failed.
Options shared by all tile preloading APIs.
Remarks
API Key Usage: Tile preloading issues one network request per tile per active source. These requests count against your MapTiler Cloud API key quota. Use
onProgressto monitor consumption and prefer narrow zoom ranges and small bounds where possible.