一个策略,用于丢弃与已知包含“缺失”图像的图像相匹配的瓦片图像。
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
具有以下属性的对象:
|
Methods
确定丢弃策略是否准备好处理图像。
Returns:
如果丢弃策略已准备好处理图像,则返回 true;否则,返回 false。
给定一个瓦片图像,决定是否丢弃该图像。
| Name | Type | Description |
|---|---|---|
image |
HTMLImageElement | 要测试的图像。 |
Returns:
如果图像应该被丢弃,则返回 true;否则,返回 false。
Throws:
-
DeveloperError :
shouldDiscardImage不能在丢弃策略准备好之前调用。
