-
Glenn Vorhes authoredGlenn Vorhes authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
RealEarthAnimate.d.ts 1.50 KiB
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;