Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Created by gavorhes on 12/4/2015.
*/
import RealEarthAnimate from './RealEarthAnimate';
import ol = require('custom-ol');
import { LayerVectorRealEarth } from "../layers/LayerRealEarthVector";
/**
* class mixin to animate RealEarth vector layers
* @augments RealEarthAnimate
*/
declare class RealEarthAnimateVector extends RealEarthAnimate {
_dataCache: Array<Array<Object> | Object>;
_source: ol.source.Vector;
_rawTimesLookup: {
[s: string]: any;
};
_currentIndex: number;
_olLayer: ol.layer.Vector;
_lyr: LayerVectorRealEarth;
constructor(layer: LayerVectorRealEarth, loadCallback?: (lyr: LayerVectorRealEarth) => void);
/**
* Call this after the mixin has been applied
*/
timeInit(): void;
/**
* Given the raw time string, add to the arrays to keep track of dates and cache
* @param {string} inString - input date string
* @protected
*/
_loadDates(inString: string): string;
/**
* @protected
*/
_loadLatest(): boolean;
/**
* Load the features at the date index specified
* @param {number} i the index of the features to be loaded by date
* @param {boolean} [setAsSource=true] set to false to trigger cache load only
* @private
*/
_loadAtTimeIndex(i: number, setAsSource?: boolean): void;
/**
* helper to load the features at the index specified
* @param {object} geojObj - the geojson object
* @private
*/
_loadFeatures(geojObj: Object): void;
setLayerTime(theTime: number): boolean;
}
export default RealEarthAnimateVector;