Merge pull request #94 from CartoDB/empty-icons
Empties _icons every time Torque re-preloads them
This commit is contained in:
commit
8ee054fa89
@ -294,8 +294,8 @@ var carto = global.carto || require('carto');
|
||||
},
|
||||
_preloadIcons: function(img_names){
|
||||
var self = this;
|
||||
this._icons = {};
|
||||
if (img_names.length > 0 && !this._forcePoints){
|
||||
if (Object.keys(this._icons).length === 0){
|
||||
for (var i = 0; i<img_names.length; i++){
|
||||
var new_img = this._createImage();
|
||||
this._icons[img_names[i]] = null;
|
||||
@ -319,8 +319,6 @@ var carto = global.carto || require('carto');
|
||||
};
|
||||
new_img.src = img_names[i];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user