Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

added timeout to end of animation when looping

Benjamin11060125dc90
diff --git a/web/js/animation/wv.anim.ui.js b/web/js/animation/wv.anim.ui.js
index dadd65c76..e0f3e574f 100644
--- a/web/js/animation/wv.anim.ui.js
+++ b/web/js/animation/wv.anim.ui.js
@@ -250,8 +250,10 @@ wv.anim.ui = wv.anim.ui || function(models, ui) {
if(animModel.rangeState.loop) {
self.shiftCache();
self.state.playIndex = wv.util.toISOStringDate(self.setNewDate(playIndexJSDate, new Date(animModel.rangeState.startDate)));
- self.checkShouldPlay();
- self.checkQueue(queueLength,self.state.playIndex);
+ setTimeout( function() {
+ self.checkShouldPlay();
+ self.checkQueue(queueLength,self.state.playIndex);
+ }, 1000);
} else {
self.refreshState();
}