From 7958c81c2405218e2817270ebf0d37ceeaa50ee1 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 4 Mar 2015 19:35:42 +0100 Subject: [PATCH] Reset icons to load counter and fire all icons loaded when any fails --- lib/torque/renderer/point.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index d0a1fb2..5a9b52d 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -380,6 +380,8 @@ var Filters = require('./torque_filters'); if (err) { self._forcePoints = true; self.clearSpriteCache(); + self._iconsToLoad = 0; + self.fire("allIconsLoaded"); if(filtered) { console.info("Only CORS-enabled, or same domain image-files can be used in combination with image-filters"); }