DiscardEmptyTileImagePolicy

new Cesium.DiscardEmptyTileImagePolicy()

用于丢弃不包含任何数据的磁贴图像(因此实际上不是图像)的策略。 此策略丢弃 DiscardEmptyTileImagePolicy.EMPTY_IMAGE,即 应由图像加载代码代替任何空的瓦片图像。
See:

Members

static readonly Cesium.DiscardEmptyTileImagePolicy.EMPTY_IMAGE : HTMLImageElement

表示空图像的默认值。

Methods

确定丢弃策略是否已准备好处理映像。
Returns:
如果丢弃策略已准备好处理图像,则为 True;否则为 false。

shouldDiscardImage(image)boolean

给定一个平铺图像,决定是否丢弃该图像。
Name Type Description
image HTMLImageElement 要测试的图像。
Returns:
如果应该丢弃图像,则为 True;否则为 false。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.