Class: IconImageCache

ol/style/IconImageCache~IconImageCache


Singleton class. Available through shared.

Methods

setSize(maxCacheSize)

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.