TimeDynamicImagery

new Cesium.TimeDynamicImagery(options)

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

Members

获取或设置一个 clock,该 clock 用于 get keep time used for time 动态参数。
获取当前间隔。
获取或设置时间间隔集合。

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:
映像的 Promise,该 Promise 将在映像可用时解析,或者 undefined 如果切片不在缓存中。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.