English中文

DiscardEmptyTileImagePolicy

new Cesium.DiscardEmptyTileImagePolicy()

丢弃不包含数据(因此实际上不是图像)的图块图像的策略。该政策抛弃了 A policy for discarding tile images that contain no data (and so aren't actually images). This policy discards DiscardEmptyTileImagePolicy.EMPTY_IMAGE,预计图像加载代码将使用它来代替任何空的图块图像。 , which is expected to be used in place of any empty tile images by the image loading code.
另见: See:

成员 Members

static readonly Cesium.DiscardEmptyTileImagePolicy.EMPTY_IMAGE : HTMLImageElement

表示空图像的默认值。 Default value for representing an empty image.

方法 Methods

确定丢弃策略是否准备好处理图像。 Determines if the discard policy is ready to process images.
返回: Returns:
如果丢弃策略已准备好处理图像,则为 True;否则为假。 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 HTMLImageElement 要测试的图像。 An image to test.
返回: Returns:
如果图像应该被丢弃,则为 True;否则为假。 True if the image should be discarded; otherwise, false.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.