Named exports from ol/color module

This commit is contained in:
Marc Jansen
2017-12-19 13:56:54 +01:00
parent afa99f5788
commit 295c2973b5
11 changed files with 95 additions and 108 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @module ol/style/IconImageCache
*/
import _ol_color_ from '../color.js';
import {asString} from '../color.js';
/**
* Singleton class. Available through {@link ol.style.iconImageCache}.
@@ -36,7 +36,7 @@ var IconImageCache = function() {
* @return {string} Cache key.
*/
function getKey(src, crossOrigin, color) {
var colorString = color ? _ol_color_.asString(color) : 'null';
var colorString = color ? asString(color) : 'null';
return crossOrigin + ':' + src + ':' + colorString;
}