English中文

TimeDynamicImagery

new Cesium.TimeDynamicImagery(options)

为具有时间动态图像的 ImageryProvider 提供功能 Provides functionality for ImageryProviders that have time dynamic imagery
名称 Name 类型 Type 说明 Description
options object 具有以下属性的对象: Object with the following properties:
名称 Name 类型 Type 说明 Description
clock Clock 确定时间维度值时使用的 Clock 实例。需要时 A Clock instance that is used when determining the value for the time dimension. Required when options.times 已指定。 is specified.
times TimeIntervalCollection TimeIntervalCollection 及其 TimeIntervalCollection with its data 属性是包含时间动态维度及其值的对象。 property being an object containing time dynamic dimension and their values.
requestImageFunction function 请求图像图块的函数。 A function that will request imagery tiles.
reloadFunction function 当所有图像图块需要重新加载时将调用的函数。 A function that will be called when all imagery tiles need to be reloaded.

成员 Members

获取或设置一个时钟,用于获取保存时间动态参数所用的时间。 Gets or sets a clock that is used to get keep the time used for time dynamic parameters.
获取当前间隔。 Gets the current interval.
获取或设置时间间隔集合。 Gets or sets a time interval collection.

方法 Methods

checkApproachingInterval(x, y, level, request)

检查下一个间隔是否即将到来,并在必要时开始预加载图块。否则,当我们接近下一个间隔时,它只会将图块添加到列表中以进行预加载。 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.
名称 Name 类型 Type 说明 Description
x number 平铺 X 坐标。 The tile X coordinate.
y number 平铺 Y 坐标。 The tile Y coordinate.
level number 瓷砖级别。 The tile level.
request Request 可选 optional 请求对象。仅供内部使用。 The request object. Intended for internal use only.

getFromCache(x, y, level, request)Promise.<HTMLImageElement>|undefined

从缓存中获取图块(如果可用)。 Gets the tile from the cache if its available.
名称 Name 类型 Type 说明 Description
x number 平铺 X 坐标。 The tile X coordinate.
y number 平铺 Y 坐标。 The tile Y coordinate.
level number 瓷砖级别。 The tile level.
request Request 可选 optional 请求对象。仅供内部使用。 The request object. Intended for internal use only.
返回: Returns:
当图像可用时将解析图像的承诺,如果图块不在缓存中则未定义。 A promise for the image that will resolve when the image is available, or undefined if the tile is not in the cache.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.