Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RealEarthAnimateVector

class mixin to animate RealEarth vector layers

augments

RealEarthAnimate

Hierarchy

Index

Constructors

constructor

Properties

_animateEnabled

_animateEnabled: boolean

_currentIndex

_currentIndex: number

_currentTime

_currentTime: number

_dataCache

_dataCache: Array<Array<Object> | Object>

_localDates

_localDates: Date[]

_lyr

_olLayer

_olLayer: VectorLayer

_products

_products: string

_rawDateStrings

_rawDateStrings: string[]

_rawTimesLookup

_rawTimesLookup: object

Type declaration

  • [s: string]: any

_source

_source: VectorSource

loadCallback

loadCallback: timesLoadedCallback

localTimes

localTimes: number[]

lyr

Methods

Private _loadAtTimeIndex

  • _loadAtTimeIndex(i: number, setAsSource?: boolean): void
  • Load the features at the date index specified

    Parameters

    • i: number

      the index of the features to be loaded by date

    • Default value setAsSource: boolean = true

    Returns void

Protected _loadDates

  • _loadDates(inString: string): string
  • Given the raw time string, add to the arrays to keep track of dates and cache

    Parameters

    • inString: string

      input date string

    Returns string

Private _loadFeatures

  • _loadFeatures(geojObj: Object): void
  • helper to load the features at the index specified

    Parameters

    • geojObj: Object

      the geojson object

    Returns void

Protected _loadLatest

  • _loadLatest(): boolean

setLayerTime

  • setLayerTime(theTime: number): boolean

timeInit

  • timeInit(): void
  • Call this after the mixin has been applied

    Returns void

Generated using TypeDoc