new DiscardMissingTileImagePolicy(options)
A policy for discarding tile images that match a known image containing a
"missing" image.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Object with the following properties:
Properties
|
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.
- Type
- Boolean
shouldDiscardImage(image) → {Boolean}
Given a tile image, decide whether to discard that image.
Parameters:
Name | Type | Description |
---|---|---|
image |
Image | An image to test. |
Throws:
-
shouldDiscardImage
must not be called before the discard policy is ready. - Type
- DeveloperError
Returns:
True if the image should be discarded; otherwise, false.
- Type
- Boolean