Use the icon image cache
This commit is contained in:
@@ -64,7 +64,7 @@ ol.style.Icon = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {ol.style.IconImage_}
|
* @type {ol.style.IconImage_}
|
||||||
*/
|
*/
|
||||||
this.iconImage_ = new ol.style.IconImage_(options.src, crossOrigin);
|
this.iconImage_ = ol.style.IconImage_.get(options.src, crossOrigin);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user