Creates an instance of WxMultilayerManager.
An array of WxTileSource objects to add to the manager.
Protected
Readonly
_sourcesAdds a new tile source to the multilayer manager.
The tile source to add.
Preloads data for a specific time across all sources.
A Promise that resolves when all data has been preloaded.
The time to preload data for.
Optional
requestInit: WxRequestInitOptional request options to pass to the underlying fetch requests.
Preloads the specified times for all sources.
A Promise that resolves when all preloading is complete.
The array of WxDate objects to preload.
Optional
requestInit: WxRequestInitOptional request options to pass to the preloadTime method of each source.
Preloads the specified times for all sources using alternative method with rasterizing tiles but not put on screen. May be faster but may cause some artifacts if USER drags the map during preloading.
A Promise that resolves when all the renders have been preloaded.
The array of WxDate objects representing the times to preload.
Optional
requestInit: WxRequestInitOptional WxRequestInit object to configure the request.
Removes a WxTileSource from the manager.
The WxTileSource or its ID to remove.
Sets the time for all sources in the multilayer manager.
A Promise that resolves when all sources have set their time and redrawn their tiles.
The time to set.
Optional
requestInit: WxRequestInitOptional request options.
Generated using TypeDoc
WxMultilayerManager manages multiple WxTileSource and provides methods to set time and preload tiles for all sources.
Example