Skip to content

KBE3D / KBCore / Cesium / TimeDynamicImagery

类: TimeDynamicImagery

Provides functionality for ImageryProviders that have time dynamic imagery

参数

Object with the following properties:

参数

A Clock instance that is used when determining the value for the time dimension. Required when <code>options.times</code> is specified.

参数

TimeIntervalCollection with its <code>data</code> property being an object containing time dynamic dimension and their values.

参数

A function that will request imagery tiles.

参数

A function that will be called when all imagery tiles need to be reloaded.

属性

clock

clock: Clock

Gets or sets a clock that is used to get keep the time used for time dynamic parameters.


times

times: TimeIntervalCollection

Gets or sets a time interval collection.


currentInterval

currentInterval: TimeInterval

Gets the current interval.

方法

getFromCache()

getFromCache(x: number, y: number, level: number, request?: Request): Promise<HTMLImageElement> | undefined

Gets the tile from the cache if its available.

参数

x

number

The tile X coordinate.

y

number

The tile Y coordinate.

level

number

The tile level.

request?

Request

The request object. Intended for internal use only.

返回

Promise<HTMLImageElement> | undefined

A promise for the image that will resolve when the image is available, or undefined if the tile is not in the cache.


checkApproachingInterval()

checkApproachingInterval(x: number, y: number, level: number, request?: Request): void

Checks if the next interval is approaching and will start preload the tile if necessary. Otherwise it will just add the tile to a list to preload when we approach the next interval.

参数

x

number

The tile X coordinate.

y

number

The tile Y coordinate.

level

number

The tile level.

request?

Request

The request object. Intended for internal use only.

返回

void

构造函数

构造函数

new TimeDynamicImagery(options: { clock: Clock; times: TimeIntervalCollection; requestImageFunction: (...params: any[]) => any; reloadFunction: (...params: any[]) => any; }): TimeDynamicImagery

参数

options
clock

Clock

times

TimeIntervalCollection

requestImageFunction

(...params: any[]) => any

reloadFunction

(...params: any[]) => any

返回

TimeDynamicImagery

KBE3D @3.0.0 Copyright © 2024-present KBE3D