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
import LayerRealEarthTile from "../layers/LayerRealEarthTile";
import { LayerVectorRealEarth } from '../layers/LayerRealEarthVector';
export interface IRealEarthAnimate {
setLayerTime(theTime: number): boolean;
}
export interface timesLoadedCallback {
(lyr?: LayerRealEarthTile | LayerVectorRealEarth): void;
}
/**
* Mixin to get the product times
* Be sure to call getTimeInit after the mixin has been applied
*/
export declare class RealEarthAnimate {
_animateEnabled: boolean;
_currentIndex: number;
_localDates: Date[];
_rawDateStrings: string[];
_products: string;
loadCallback: timesLoadedCallback;
localTimes: number[];
_currentTime: number;
lyr: LayerRealEarthTile | LayerVectorRealEarth;
constructor(lyr: LayerRealEarthTile | LayerVectorRealEarth, loadCallback?: timesLoadedCallback);
/**
* 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 string to parse
* @returns {string} the converted string
* @protected
*/
_loadDates(inString: string): string;
/**
*
* @protected
* @returns {boolean} if should continue
*/
_loadLatest(): boolean;
/**
*
* @param {number} theTime - the time
* @returns {boolean} true if new index, false if the same or below lowest value
*/
setLayerTime(theTime: number): boolean;
}
export default RealEarthAnimate;