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