TimeDynamicImagery

new Cesium.TimeDynamicImagery(options)

为具有时间动态影像的 ImageryProviders 提供功能
Name Type Description
options object 包含以下属性的对象:
Name Type Description
clock Clock 用于确定时间维度值的 Clock 实例。当指定 options.times 时为必需。
times TimeIntervalCollection TimeIntervalCollection,其 data 属性为包含时间动态维度及其值的对象。
requestImageFunction function 用于请求影像图块的函数。
reloadFunction function 当需要重新加载所有影像图块时将调用的函数。

Members

获取或设置用于保持时间动态参数所用时间的时钟。
获取当前间隔。
获取或设置时间间隔集合。

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:
当图像可用时将解析的图像承诺,如果图块不在缓存中则为 undefined。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.