Tiled Time Series Data Provider
A TimeSeriesDataProvider
class that handles loading and configuring time series data for tile layers.
This class is designed to work with tile-based data sources and is optimized for loading time series data for individual tiles and tile intervals. It queues requests into a primary queue and a background queue collection so that the primary queue can load the first chunk of data, which is the minimal amount of data required to begin animating. Then the background queue can continue loading the rest of the data in smaller chunks to fill in the gaps while the animation is already playing.
Properties
Whether to interleave (stagger) requests for multiple time intervals.
The maximum number of time intervals to request data for in a single request. Requests will be split into multiple requests if the number of intervals needed exceeds this value.
Functions
Returns a map of time intervals to a boolean value indicating whether the data for the interval is available as determined by the data provider.
Resets the state of the data provider, marking it as dirty and clearing any loaded data or existing requests.
Loads the data for the specified time intervals.
Called when the data provider is about to start loading data for a set of time intervals.
Marks the data provider as needing an update, which will trigger a new data request on the next update cycle.
Sorts an array of tile interval chunks so that we load those in the middle of each chunk first.
Renamed from trigger in js since type-erasure caused signature clash