Class: IWTilesRemovalStrategyNavigationDistance

IWTilesRemovalStrategyNavigationDistance

Strategy checks the navigation distance a loaded tile is away from the maptype and zoom level the map is showing currently. The navigation distance stands for the number of user interactions with the map which took place. The probability a tile is displayed again is falling rapidly with this navigation distance.

new IWTilesRemovalStrategyNavigationDistance(maxAllowedDistance)

Parameters:
Name Type Description
maxAllowedDistance Number beyond this distance the tiles and layers are thrown away. This parameter is optional. If it is not set it is set to 3.

Extends

Methods


afterChangingLayer()

All layers which are more than maxAllowedDistance steps away are completely discarded with tiles and map layer.
Overrides:

afterMove()

Checks what border tiles should be discarded after a move. While the user is only moving the map and not zooming it the number of border around the visible tiles are highered and tiles of the maptypes and other zoom levels are discarded.
Overrides: