TileDiscardPolicy

TileDiscardPolicy

new TileDiscardPolicy

A policy for discarding tile images according to some criteria. This type describes an interface and is not intended to be instantiated directly.

See:

Methods

<static> prototype.isReady

Determines if the discard policy is ready to process images.

Returns:
Boolean True if the discard policy is ready to process images; otherwise, false.

<static> prototype.shouldDiscardImage

Given a tile image, decide whether to discard that image.

Parameters:
Name Type Description
image Image | Promise An image, or a promise that will resolve to an image.
Returns:
Boolean A promise that will resolve to true if the tile should be discarded.