The options for the WxLayerBaseImplementation.
The options for the framework.
Protected
_needA boolean flag indicating whether the dataset manager needs to be updated or not.
returns the dataset manager of the source
the dataset manager of the source
Protected
createGet a copy of the current style of the source.
A copy of the current style of the source.
Get the metadata of the current variable(s).
Get comprehensive information about the current point on map.
Coordinates of the point.
Get the metadata of the current variable(s).
Get current variables (1 or 2) of the source/layer.
variables of the source.
Internal
Called when the layer is removed from a map.
The map instance.
Cache tiles for faster rendering for setTime. If the time is not available, the closest time will be used.
A promise that resolves when finished preload.
Time to preload.
Optional
requestInit: WxRequestInitRequest options.
Set the style of the source by its name from default styles.
A promise that resolves when the style is set.
Name of the new style to set.
If true, the source will be reloaded and rerendered.
Set time and render the source. If the time is not available, the closest time will be used.
A promise that resolves with current time step when the time is set and the source is loaded and rendered.
Optional
time: WxDateTime to set.
Optional
requestInit: WxRequestInitRequest options for fetch.
Update the current style object of the source partially or completely.
A promise that resolves when the style is set.
Optional
style: WxColorStyleWeakStyle's fields to set.
If true, the source will be reloaded and rerendered.
Optional
requestInit: WxRequestInitRequest options.
Generated using TypeDoc
A custom layer source implementation It is used to load and display weather data from the WxTiles server.
Example
Or use the createSourceLayer method to create a layer/source in one step.