Internal
Creates a new instance of the WxTileSource class.
The options for the WxLayerBaseImplementation.
The options for the framework.
Optional Readonly attributionMAPBOX API
Optional Readonly boundsMAPBOX API
Readonly dataMAPBOX API required
Optional Readonly maxzoomMAPBOX API
Optional Readonly opacityReadonly tileMAPBOX API required. only 256
Readonly typeMAPBOX API required
Reloads the visible tiles with new data. Used for time/particles animation.
A promise that resolves when the tiles have been reloaded and redrawn.
Optional requestInit: WxRequestInitThe request options.
Internal
Loads a tile with the given coordinates and request options. Used by framework. Creates a representation of a tile for the framework. It rethrows 'AbortError' errors. It returns empty tile during datasetManager update or in case of any other error (e.g. network error, not found, etc.) It tries to update datasetManager if e.reason === 'instance-not-found' and update the layer
The tile coordinates to be loaded.
Optional requestInit: WxRequestInitThe request options.
Adds a listener for the event that will be executed only once. After the event is fired, the listener will be removed.
The event name.
The listener function to add.
Generated using TypeDoc
A custom layer source implementation It is used to load and display weather data from the WxTiles server. NOTE Dont use this directly, use createSourceLayer instead
Example