Class: TileCache

Mapspace. TileCache


new TileCache( [preCachedLevels] [, opt_highWaterMark])

A class that extend ol.TileCache with extra functionality. It allows to define fixed tiles that never will be removed from the cache even if cache becomes expirable.

Be aware that never expirable tiles are cached in a separate object and do not support different projections at the moment.

Parameters:
Name Type Argument Description
preCachedLevels number <optional>

Max zoom level to be precached. All tiles with z equal or under this value never expire. Undefined to ignore.

opt_highWaterMark number <optional>

High water mark or expirable cache size.

Source:
mapspace/tilecache.js

Extends

  • ol.TileCache

Methods


clear()

Clears the cache.

Source:
mapspace/tilecache.js

set()

Source:
mapspace/tilecache.js