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/dist/index.d.ts:860

Properties

id

id: string

数据源 id

Defined in

gl-core/dist/index.d.ts:821


type

type: timeline

数据源类型

Defined in

gl-core/dist/index.d.ts:825


minZoom

minZoom: number

支持的最小层级

Defined in

gl-core/dist/index.d.ts:829


maxZoom

maxZoom: number

支持的最大层级

Defined in

gl-core/dist/index.d.ts:833


roundZoom

roundZoom: boolean

生成瓦片时的配置

Defined in

gl-core/dist/index.d.ts:837


tileSize

tileSize: number

瓦片大小

Defined in

gl-core/dist/index.d.ts:841


coordinates

coordinates: WithUndef<Coordinates>

影像坐标

Defined in

gl-core/dist/index.d.ts:845


options

options: TimelineSourceOptions

配置项

Defined in

gl-core/dist/index.d.ts:849


wrapX

wrapX: boolean

是否跨世界渲染

Defined in

gl-core/dist/index.d.ts:853


renderer

renderer: Renderer

Defined in

gl-core/dist/index.d.ts:854


dispatcher

dispatcher: any

Defined in

gl-core/dist/index.d.ts:855


layer

layer: WithNull<BaseLayer>

Defined in

gl-core/dist/index.d.ts:856


parseOptions

parseOptions: ParseOptionsType

Defined in

gl-core/dist/index.d.ts:857


tileBounds

tileBounds: undefined | Bounds

Defined in

gl-core/dist/index.d.ts:858


intervals

intervals: (ImageSourceInterval | TileSourceInterval)[]

Defined in

gl-core/dist/index.d.ts:859

Accessors

track

get track(): Track

Returns

Track

Defined in

gl-core/dist/index.d.ts:861


privateType

get privateType(): LayerSourceType

Returns

LayerSourceType

Defined in

gl-core/dist/index.d.ts:862


cache

get cache(): Map<string, any>

Returns

Map<string, any>

Defined in

gl-core/dist/index.d.ts:863


source

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

Returns

(TileSource | ImageSource)[]

Defined in

gl-core/dist/index.d.ts:864


sourceCache

get sourceCache(): SourceCache[]

Returns

SourceCache[]

Defined in

gl-core/dist/index.d.ts:865

Methods

onAdd

onAdd(layer): void

Parameters

NameType
layerany

Returns

void

Defined in

gl-core/dist/index.d.ts:866


prepare

prepare(renderer, dispatcher, parseOptions): void

Parameters

NameType
rendererRenderer
dispatcherany
parseOptionsParseOptionsType

Returns

void

Defined in

gl-core/dist/index.d.ts:867


getFadeTime

getFadeTime(): number

Returns

number

Defined in

gl-core/dist/index.d.ts:868


tilesLoadEnd

tilesLoadEnd(): void

Returns

void

Defined in

gl-core/dist/index.d.ts:869


animate

animate(«destructured»): void

Parameters

NameType
«destructured»Object
› positionany

Returns

void

Defined in

gl-core/dist/index.d.ts:870


play

play(): void

Returns

void

Defined in

gl-core/dist/index.d.ts:873


pause

pause(): void

Returns

void

Defined in

gl-core/dist/index.d.ts:874


resume

resume(): void

Returns

void

Defined in

gl-core/dist/index.d.ts:875


stop

stop(): void

Returns

void

Defined in

gl-core/dist/index.d.ts:876


restart

restart(): void

Returns

void

Defined in

gl-core/dist/index.d.ts:877


load

load(cb?): void

Parameters

NameType
cb?any

Returns

void

Defined in

gl-core/dist/index.d.ts:878


loaded

loaded(): boolean

Returns

boolean

Defined in

gl-core/dist/index.d.ts:879


destroy

destroy(): void

Returns

void

Defined in

gl-core/dist/index.d.ts:880

Released under the MIT License.