Interactive interface for browsing global, full-resolution satellite imagery
Merge branch 'redux-merge-with-timeline2-develop' into redux-merge-with-timeline2
Edward Plato1807e52c5d1f
diff --cc web/js/containers/animation-widget.jsindex f76f6ca33,71b4051c7..02954e257--- a/web/js/containers/animation-widget.js+++ b/web/js/containers/animation-widget.js@@@ -13,18 -9,7 +13,18 @@@ import LoopButton from '../components/aimport PlayButton from '../components/animation-widget/play-button';import AnimWidgetHeader from '../components/animation-widget/header';import googleTagManager from 'googleTagManager';-import { hasSubDaily as hasSubDailySelector, lastDate as layersLastDateTime } from '../modules/layers/selectors';+import PlayQueue from '../components/animation-widget/play-queue';++import { promiseImageryForTime } from '../modules/map/util';- import { selectDate } from '../modules/date/actions';++import { selectDate, selectInterval } from '../modules/date/actions';+import GifContainer from './gif';- import { timeScaleFromNumberKey } from '../modules/date/constants';++import { timeScaleFromNumberKey, timeScaleToNumberKey } from '../modules/date/constants';+import { getQueueLength, getMaxQueueLength } from '../modules/animation/util';+import {+ hasSubDaily as hasSubDailySelector,+ lastDate as layersLastDateTime,+ getLayers+} from '../modules/layers/selectors';import {play,onClose,@@@ -295,20 -263,12 +316,22 @@@ function mapStateToProps(state)hasSubdailyLayers,incrementArray: zoomObj.array,increment: zoomObj.increment,+ customDelta: zoomObj.customDelta,+ customInterval: zoomObj.customInterval,sliderLabel: 'Frames Per Second',+ layers: getLayers(layers[activeStr], {}, state),speed,isPlaying,- looping: loop+ looping: loop,+ delta: customSelected ? customDelta : delta,+ interval: customSelected+ ? timeScaleFromNumberKey[customInterval]+ : timeScaleFromNumberKey[interval],+ hasCustomPalettes,+ map: legacy.map,+ promiseImageryForTime: (date, layers) => {+ return promiseImageryForTime(date, layers, state);+ }};}const mapDispatchToProps = dispatch => ({diff --cc web/js/containers/timeline/timeline.jsindex e840e062d,e82080331..2789c9689--- a/web/js/containers/timeline/timeline.js+++ b/web/js/containers/timeline/timeline.js@@@ -29,12 -24,11 +29,14 @@@ importimport { toggleActiveCompareState } from '../../modules/compare/actions';import {onActivate as openAnimation,- onClose as closeAnimation+ onClose as closeAnimation,+ changeStartDate,+ changeEndDate} from '../../modules/animation/actions';-import { timeScaleFromNumberKey, timeScaleToNumberKey } from '../../modules/date/constants';+import {+ timeScaleFromNumberKey,+ timeScaleToNumberKey+} from '../../modules/date/constants';const ANIMATION_DELAY = 500;