Class: IconImageCache

ol/style/IconImageCache~IconImageCache


Singleton class. Available through shared.

Methods

setSize(maxCacheSize)

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

Name Type Description
maxCacheSize number

Cache max size.