Type Alias OfflineRegionTileHandler
OfflineRegionTileHandler: (
request: { url: string },
abortController?: AbortController,
) => Promise<{ cacheControl?: string; data: ArrayBuffer; expires?: string }>
Type Declaration
- (
request: { url: string },
abortController?: AbortController,
): Promise<{ cacheControl?: string; data: ArrayBuffer; expires?: string }> Parameters
- request: { url: string }
OptionalabortController: AbortController
Returns Promise<{ cacheControl?: string; data: ArrayBuffer; expires?: string }>
The handler shape
createOfflineRegionTileProtocol()returns.Declared structurally so the runtime never imports the offline entrypoint; it is the same shape MapLibre itself expects from
addProtocol.