Skip to content

TileLayerEvictErrorTileStrategy

Inherits: Enum

Strategies on how to handle tile errors.

Properties

  • DISPOSE

    Evict images for tiles which failed to load when they are pruned.

  • NONE

    Never evict images for tiles which failed to load.

  • NOT_VISIBLE

    Evict images for tiles which failed to load and:

  • NOT_VISIBLE_RESPECT_MARGIN

    Evict images for tiles which failed to load and:

Properties#

DISPOSE = 'dispose' class-attribute instance-attribute #

Evict images for tiles which failed to load when they are pruned.

NONE = 'none' class-attribute instance-attribute #

Never evict images for tiles which failed to load.

NOT_VISIBLE = 'notVisible' class-attribute instance-attribute #

Evict images for tiles which failed to load and
  • do not belong to the current zoom level AND/OR
  • are not visible

NOT_VISIBLE_RESPECT_MARGIN = 'notVisibleRespectMargin' class-attribute instance-attribute #

Evict images for tiles which failed to load and
  • do not belong to the current zoom level AND/OR
  • are not visible, respecting the pruning buffer (the maximum of the keep_buffer and pan_buffer).