DiscardColorTileImagePolicy

new Cesium.DiscardColorTileImagePolicy()

图片像素大于透明度所设置的值则不创建该切片对应的纹理,并丢弃寻找可用父节点代替
See:

Methods

isReady()Boolean

Determines if the discard policy is ready to process images.
Returns:
True if the discard policy is ready to process images; otherwise, false.

shouldDiscardImage(image)Boolean

Given a tile image, decide whether to discard that image.
Name Type Description
image Image An image to test.
Returns:
True if the image should be discarded; otherwise, false.
Throws:
  • DeveloperError : shouldDiscardImage must not be called before the discard policy is ready.