Interactive interface for browsing global, full-resolution satellite imagery
onZoomChange fix anim.widget
Benjamind3939424eb94
diff --git a/web/js/animation/wv.anim.widget.js b/web/js/animation/wv.anim.widget.jsindex c81d6c151..5fe9a63b8 100644--- a/web/js/animation/wv.anim.widget.js+++ b/web/js/animation/wv.anim.widget.js@@ -77,9 +77,8 @@ wv.anim.widget = wv.anim.widget || function(models, config, ui) {return zooms[timeline.config.currentZoom - 1];};self.onZoomSelect = function(increment) {- var zoomLevel = _.indexOf(zoom, increment);- return tl.config.zoom(zoomLevel);-+ var zoomLevel = _.indexOf(zooms, increment);+ return timeline.config.zoom(zoomLevel + 1);}self.dateUpdate = function(startDate, endDate) {model.rangeState.startDate = wv.util.toISOStringDate(startDate) || 0;