Interactive interface for browsing global, full-resolution satellite imagery
comment and trace listener methods in timeline, add modal component back to app
Edward Plato82c496da2f45
diff --git a/web/js/app.js b/web/js/app.jsindex e229a49e8..d514171a9 100644--- a/web/js/app.js+++ b/web/js/app.js@@ -94,6 +94,7 @@ class App extends React.Component {style={{ display: 'none' }}></section><OlCoordinates mouseEvents={this.props.mapMouseEvents} />+ <Modal /></div>);}diff --git a/web/js/date/timeline.js b/web/js/date/timeline.jsindex e20c116a0..afc0b8bc1 100644--- a/web/js/date/timeline.js+++ b/web/js/date/timeline.js@@ -520,6 +520,7 @@ export function timeline(models, config, ui) {};// arguments passed as date (date object) and selectionStr ('selected' or 'selectedB')+ // FROM LISTENERvar updateReactTimelineDate = function(date, selectionStr) {let selectedDate = models.date.selected;let selectedDateB = models.date.selectedB;@@ -538,6 +539,7 @@ export function timeline(models, config, ui) {};// Update status of subdaily layers being in sidebar+ // child of FROM LISTENERvar updateSubdailyState = function() {// check for compare modelet isCompareModeActive = models.compare.active;@@ -563,12 +565,14 @@ export function timeline(models, config, ui) {}};+ // layer update FROM LISTENERvar onLayerUpdate = function() {self.resize();ui.anim.widget.update();updateSubdailyState();};+ // animation date change FROM LISTENERvar onAnimationDateChange = () => {let animationStartLocationDate = models.anim.rangeState.startDate;let animationEndLocationDate = models.anim.rangeState.endDate;@@ -579,6 +583,7 @@ export function timeline(models, config, ui) {});};+ // toggle animation widget FROM LISTENERvar onAnimationWidgetToggle = () => {let animationStartLocationDate = models.anim.rangeState.startDate;let animationEndLocationDate = models.anim.rangeState.endDate;@@ -591,6 +596,7 @@ export function timeline(models, config, ui) {});};+ // initialization on load - CONTAINER ADDED TO DOM HEREvar init = function() {models.layers.events.trigger('toggle-subdaily');