chird / meteoJS

Javascript Library for meteorological and atmospheric tools
Apache License 2.0
25 stars 6 forks source link

Synview: Preload resources #44

Open chird opened 3 years ago

chird commented 3 years ago

Improvement within the preload options in the Type class can be made.

Preload options should be expanded with the following keys:

strategy: 'all' | 'nearest', // 'nearest' has to be implemented in the Synview class.
maxPendingResources: number | Infinity, // how many resources are loaded at once
maxPreloadedResources: number | Infinity // for 'nearest' -> how many resources are preloaded "around" the current visible timestamp.