Skip to content

Class: TimelineSource

Hierarchy

  • EventEmitter

    TimelineSource

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new TimelineSource(id, options): TimelineSource

Parameters

NameType
idstring
optionsTimelineSourceOptions

Returns

TimelineSource

Overrides

EventEmitter.constructor

Defined in

gl-core/src/source/Timeline.ts:134

Properties

id

id: string

数据源 id

Defined in

gl-core/src/source/Timeline.ts:67


type

type: timeline

数据源类型

Defined in

gl-core/src/source/Timeline.ts:72


minZoom

minZoom: number

支持的最小层级

Defined in

gl-core/src/source/Timeline.ts:77


maxZoom

maxZoom: number

支持的最大层级

Defined in

gl-core/src/source/Timeline.ts:82


roundZoom

roundZoom: boolean = false

生成瓦片时的配置

Defined in

gl-core/src/source/Timeline.ts:87


tileSize

tileSize: number

瓦片大小

Defined in

gl-core/src/source/Timeline.ts:92


coordinates

coordinates: WithUndef<Coordinates>

影像坐标

Defined in

gl-core/src/source/Timeline.ts:97


options

options: TimelineSourceOptions

配置项

Defined in

gl-core/src/source/Timeline.ts:102


wrapX

wrapX: boolean

是否跨世界渲染

Defined in

gl-core/src/source/Timeline.ts:107


renderer

renderer: Renderer

Defined in

gl-core/src/source/Timeline.ts:109


dispatcher

dispatcher: any

Defined in

gl-core/src/source/Timeline.ts:111


layer

layer: WithNull<BaseLayer>

Defined in

gl-core/src/source/Timeline.ts:113


parseOptions

parseOptions: ParseOptionsType

Defined in

gl-core/src/source/Timeline.ts:115


tileBounds

tileBounds: undefined | Bounds

Defined in

gl-core/src/source/Timeline.ts:117


intervals

intervals: (ImageSourceInterval | TileSourceInterval)[]

Defined in

gl-core/src/source/Timeline.ts:119

Accessors

track

get track(): default

Returns

default

Defined in

gl-core/src/source/Timeline.ts:242


privateType

get privateType(): LayerSourceType

Returns

LayerSourceType

Defined in

gl-core/src/source/Timeline.ts:246


cache

get cache(): Map<string, any>

Returns

Map<string, any>

Defined in

gl-core/src/source/Timeline.ts:250


source

get source(): (ImageSource | TileSource)[]

Returns

(ImageSource | TileSource)[]

Defined in

gl-core/src/source/Timeline.ts:254


sourceCache

get sourceCache(): default[]

Returns

default[]

Defined in

gl-core/src/source/Timeline.ts:258

Methods

onAdd

onAdd(layer): void

Parameters

NameType
layerany

Returns

void

Defined in

gl-core/src/source/Timeline.ts:262


prepare

prepare(renderer, dispatcher, parseOptions): void

Parameters

NameType
rendererRenderer
dispatcherany
parseOptionsParseOptionsType

Returns

void

Defined in

gl-core/src/source/Timeline.ts:279


getFadeTime

getFadeTime(): number

Returns

number

Defined in

gl-core/src/source/Timeline.ts:291


tilesLoadEnd

tilesLoadEnd(): void

Returns

void

Defined in

gl-core/src/source/Timeline.ts:295


animate

animate(«destructured»): void

Parameters

NameType
«destructured»Object
› positionany

Returns

void

Defined in

gl-core/src/source/Timeline.ts:299


play

play(): void

Returns

void

Defined in

gl-core/src/source/Timeline.ts:333


pause

pause(): void

Returns

void

Defined in

gl-core/src/source/Timeline.ts:338


resume

resume(): void

Returns

void

Defined in

gl-core/src/source/Timeline.ts:343


stop

stop(): void

Returns

void

Defined in

gl-core/src/source/Timeline.ts:348


restart

restart(): void

Returns

void

Defined in

gl-core/src/source/Timeline.ts:353


load

load(cb?): void

Parameters

NameType
cb?any

Returns

void

Defined in

gl-core/src/source/Timeline.ts:358


loaded

loaded(): boolean

Returns

boolean

Defined in

gl-core/src/source/Timeline.ts:377


destroy

destroy(): void

Returns

void

Defined in

gl-core/src/source/Timeline.ts:381

Released under the MIT License.