Interactive interface for browsing global, full-resolution satellite imagery
update event names, minor fixes
Ed Plato293e0687f716
diff --git a/web/js/components/smart-handoffs/util.js b/web/js/components/smart-handoffs/util.jsindex 015c32f9c..44ff9be5c 100644--- a/web/js/components/smart-handoffs/util.js+++ b/web/js/components/smart-handoffs/util.js@@ -5,14 +5,17 @@ import util from '../../util/util';* Method call to direct the user to Earthdata Search with the necessary URL parameters that* encapsulate what the user is intending to try and download data / granules from* @param {*} proj+ * @param {*} includeDates* @param {*} selectedDate- * @param {*} selectedLayer+ * @param {*} selectedCollection* @param {*} extentCoords* @param {*} showBoundingBox*/export default function openEarthDataSearch(proj, includeDates, selectedDate, selectedCollection, extentCoords, showBoundingBox) {+ const { value } = selectedCollection;googleTagManager.pushEvent({- event: 'smart_handoffs_open_eds',+ event: 'smart_handoffs_open_eds_data_query',+ selected_collection: value,});const PROJ_CODES = {arctic: '90!0!0!0!0!0',@@ -21,8 +24,8 @@ export default function openEarthDataSearch(proj, includeDates, selectedDate, se};const { southWest, northEast } = extentCoords;const params = {- q: selectedCollection.value,- p: selectedCollection.value,+ q: value,+ p: value,m: PROJ_CODES[proj],'sb[0]': showBoundingBox ? `${southWest},${northEast}` : undefined,};diff --git a/web/js/components/timeline/timeline-coverage/timeline-coverage.js b/web/js/components/timeline/timeline-coverage/timeline-coverage.jsindex 16c38e58d..e5d33b8a2 100644--- a/web/js/components/timeline/timeline-coverage/timeline-coverage.js+++ b/web/js/components/timeline/timeline-coverage/timeline-coverage.js@@ -429,7 +429,7 @@ const mapDispatchToProps = (dispatch) => ({onInfoClick: () => {const key = 'TIMELINE_LAYER_COVERAGE_INFO_MODAL';googleTagManager.pushEvent({- event: 'data_coverage_panel_info',+ event: 'layer_coverage_panel_info',});dispatch(toggleCustomContent(key, {diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.jsindex badb979d3..3a66c8532 100644--- a/web/js/containers/timeline/timeline.js+++ b/web/js/containers/timeline/timeline.js@@ -855,9 +855,9 @@ class Timeline extends React.Component {* @returns {void}*/toggleLayerCoveragePanel = (isOpen) => {- if (!isOpen) {+ if (isOpen) {googleTagManager.pushEvent({- event: 'open_data_coverage_panel',+ event: 'open_layer_coverage_panel',});}this.setState({diff --git a/web/js/modules/layers/util.js b/web/js/modules/layers/util.jsindex cd48fb7f4..abf6e204d 100644--- a/web/js/modules/layers/util.js+++ b/web/js/modules/layers/util.js@@ -636,7 +636,7 @@ const getSubdailyDateRange = ({/*** Return an array of dates based on the dateRange the current date falls in.*- * @method datesinDateRangesDataPanel+ * @method datesinDateRanges* @param {Object} def A layer object* @param {Object} date A date object for currently selected date* @param {Object} startDateLimit A date object used as start date of timeline range for available data