new Cesium.DiscardMissingTileImagePolicy(options)

丢弃与已知图像匹配的平板图像的政策 "missing" image.
Name Type Description
options object 下列属性的对象 :
Name Type Default Description
missingImageUrl Resource | string 已知缺失图像的 NT 0 .
pixelsToCheck Array.<Cartesian2> An array of Cartesian2 pixel positions to 对比缺失的图像 .
disableCheckIfAllPixelsAreTransparent boolean false optional If true, the discard check will be disabled 如果缺少的ImageUrl中所有像素ToCheck的α值为0。 如果虚假 丢弃检查无论像素ToCheck的值如何都会进行.

Methods

isReady()boolean

确定丢弃策略是否准备好处理图像 .
Returns:
如果丢弃策略准备处理图像, 则属真; 否则, 是假的 .

shouldDiscardImage(image)boolean

鉴于一个瓦片图像,决定是否丢弃该图像.
Name Type Description
image HTMLImageElement 要测试的图像 .
Returns:
如果图像应该被丢弃, 是真的; 否则, 是假的 .
Throws:
  • DeveloperError : shouldDiscardImage must not be called before the discard policy is ready.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.