Use the icon image cache

This commit is contained in:
Éric Lemoine
2014-02-03 14:22:30 +01:00
parent 065663b242
commit c2fe25ee26

View File

@@ -64,7 +64,7 @@ ol.style.Icon = function(opt_options) {
* @private
* @type {ol.style.IconImage_}
*/
this.iconImage_ = new ol.style.IconImage_(options.src, crossOrigin);
this.iconImage_ = ol.style.IconImage_.get(options.src, crossOrigin);
/**
* @private