Export shared icon image class from IconImageCache module

This commit is contained in:
Tim Schaub
2018-04-23 17:40:20 -06:00
parent 6631b58e6b
commit e28305186c
6 changed files with 15 additions and 16 deletions

View File

@@ -4,7 +4,7 @@
import {asString} from '../color.js';
/**
* Singleton class. Available through {@link ol.style.iconImageCache}.
* Singleton class. Available through {@link module:ol/style/IconImageCache~shared}.
* @constructor
*/
const IconImageCache = function() {
@@ -104,3 +104,11 @@ IconImageCache.prototype.setSize = function(maxCacheSize) {
this.expire();
};
export default IconImageCache;
/**
* The {@link module:ol/style/IconImageCache~IconImageCache} for
* {@link module:ol/style/Icon~Icon} images.
* @api
*/
export const shared = new IconImageCache();