Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Set gif intervalAmount based on interval type

ZachTRice912ade5b404e
diff --git a/web/js/animation/gif.js b/web/js/animation/gif.js
index 0a9d13014..c31f85b87 100644
--- a/web/js/animation/gif.js
+++ b/web/js/animation/gif.js
@@ -529,6 +529,8 @@ export function animationGif(models, config, ui) {
var opacities;
var epsg = (models.proj.change) ? models.proj.change.epsg : models.proj.selected.epsg;
var products = getProducts();
+ var layers;
+ var intervalAmount = 1;
if (config.features.imageDownload) {
host = config.features.imageDownload.host;
@@ -555,7 +557,12 @@ export function animationGif(models, config, ui) {
} else {
a.push(src);
}
- current = util.dateAdd(current, ui.anim.ui.getInterval(), 1);
+ if(ui.anim.ui.getInterval() === 'minute') {
+ intervalAmount = 10;
+ } else {
+ intervalAmount = 1;
+ }
+ current = util.dateAdd(current, ui.anim.ui.getInterval(), intervalAmount);
if (j > 40) { // too many frames
showUnavailableReason();
uiIndicator.hide(loader);