Interactive interface for browsing global, full-resolution satellite imagery
fixed add layer loading indicator error
Benjamin1d0ba9e44aa3
diff --git a/web/js/animation/wv.anim.ui.js b/web/js/animation/wv.anim.ui.jsindex 83c3fb3ea..e0911e77e 100644--- a/web/js/animation/wv.anim.ui.js+++ b/web/js/animation/wv.anim.ui.js@@ -33,7 +33,12 @@ wv.anim.ui = wv.anim.ui || function(models, ui) {models.proj.events.on("select", self.refreshState);models.date.events.on("select", self.dateChange);models.palettes.events.on('update', self.refreshState);- ui.map.events.on('added-layer', self.refreshState);+ ui.map.events.on('added-layer', function() {+ /* timeout set because another add-layer event was being+ triggered after+ */+ setTimeout(function(){self.refreshState();}, 500);+ });//map.on('moveend', self.refreshState);};self.dateChange = function() {