Interactive interface for browsing global, full-resolution satellite imagery
adding label to date #WV-177
Benjamina9e0cfc6c49b
diff --git a/web/js/animation/wv.anim.gif.js b/web/js/animation/wv.anim.gif.jsindex 1f5f54ea6..026d49fd2 100644--- a/web/js/animation/wv.anim.gif.js+++ b/web/js/animation/wv.anim.gif.js@@ -99,6 +99,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {'gifWidth': animCoords.w,'gifHeight': animCoords.h,'images': imageArra,+ 'fontColor' : '#000','interval': 1 / interval,'progressCallback': onGifProgress}, onGifComplete);@@ -270,11 +271,14 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {var toDate = new Date(endDate);var current = fromDate;var j = 0;+ var src;+ var strDate;while(current <= toDate) {j++;- var src = wv.util.format(url, wv.util.toISOStringDate(current));- a.push(src);+ strDate = wv.util.toISOStringDate(current);+ src = wv.util.format(url, strDate);+ a.push({src: src, text: strDate});current = wv.util.dateAdd(current, ui.anim.ui.getInterval(), 1);if(j > 40) { // too many frameshowUnavailableReason();@@ -288,7 +292,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {len = animModel.rangeState.speed / 2, // get a half seconds worth of frameslastSrc = a.length - 1;i < len; i++) {- a.push(a[lastSrc]);+ a.push({src: src, text: strDate});}return a;};