Class: IWTilesRemovalStrategyHeuristicCached

IWTilesRemovalStrategyHeuristicCached

This strategy removing the unused tiles works heuristically: If there are too many tiles these get reduced. The two layers next to the current layer remain additionally. All other layers are removed completely.

new IWTilesRemovalStrategyHeuristicCached()

Default Constructor.

Extends

Methods


afterChangingLayer()

Destroys the tiles in the div-container except the tiles of the same, one above and one beyond level.
Overrides:

afterMove()

Remove all tiles which are (1) not one level beyond or above the current level or are on the current level (2) if there are to much tiles we only keep the half of the tiles of the current level which are closest to the center.
Overrides: