Class: IconImageCache

ol/style/IconImageCache~IconImageCache


Singleton class. Available through module:ol/style/IconImageCache~shared.

Methods

setSize(maxCacheSize)

style/IconImageCache.js, line 93

Set the cache size of the icon cache. Default is 32. Change this value when your map uses more than 32 different icon images and you are not caching icon styles on the application level.

Name Type Description
maxCacheSize number

Cache max size.