new Cesium.TimeDynamicImagery(options)

为有时间动态图像的图像提供功能
Name Type Description
options object 下列属性的对象 :
Name Type Description
clock Clock A Clock instance that is used when determining the value for the time dimension. Required when options.times is specified.
times TimeIntervalCollection TimeInterval Collection, 其属性为 NT 0 data NT 1 是一个包含时间动态维度及其值的对象.
requestImageFunction function 需要图像牌的函数 .
reloadFunction function 当需要重新装入所有图像牌时将调用函数 .

Members

clock : Clock

获取或设置用于保留时间动态参数所用时间的时钟.

currentInterval : TimeInterval

获取当前间隔 .
获取或设置时间间隔收藏.

Methods

checkApproachingInterval(x, y, level, request)

检查下一个间隔是否接近,必要时会开始预装瓦片 。 否则,它会 只要把瓷砖添加到列表中, 当我们接近下一个间隔时, 可以预加载 .
Name Type Description
x number 瓷砖X坐标.
y number 瓦片Y坐标.
level number 瓦片级.
request Request optional 请求对象 。 仅供内部使用.

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

如果缓存可用, 则从该缓存中获取瓷砖 .
Name Type Description
x number 瓷砖X坐标.
y number 瓦片Y坐标.
level number 瓦片级.
request Request optional 请求对象 。 仅供内部使用.
Returns:
承诺在图像可用时解决图像,或 如果瓷砖不在缓存中, 未定义 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.