Interactive interface for browsing global, full-resolution satellite imagery
remove available at date function no longer used
Jason Kentbd760a94f6e2
diff --git a/web/js/modules/layers/util.js b/web/js/modules/layers/util.jsindex cc8e10768..7ed491f14 100644--- a/web/js/modules/layers/util.js+++ b/web/js/modules/layers/util.js@@ -18,45 +18,6 @@ import { getPaletteAttributeArray } from '../palettes/util';import { getVectorStyleAttributeArray } from '../vector-styles/util';import util from '../../util/util';-/**- *- * @param {*} def - layer definition- * @param {*} date - current selected app date- * @returns {Boolean} - True if layer is available at date, otherwise false- */-// export function availableAtDate(def, date) {-// const { dateRanges, inactive } = def;-// const startDate = def.startDate && new Date(def.startDate);-// const endDate = def.endDate && new Date(def.endDate);--// // Some vector layers-// if (!startDate && !dateRanges) {-// return true;-// }-// // set inactive in config-// if (endDate && inactive) {-// return date < endDate && date > startDate;-// }-// // no endDate may indicate ongoing-// if (startDate && !endDate) {-// if (!dateRanges) {-// return date > startDate;-// }--// const endRange = dateRanges.length - 1;-// const rangeEndDate = new Date(dateRanges[endRange].endDate);-// if (inactive) {-// // We may need to look at individual date ranges for more accuracy-// return date > startDate && rangeEndDate && date < rangeEndDate;-// }--// // TODO do we need to see if current date falls within a start/end-// // date of any date range before resorting to simply checking if it falls-// // after the start date for an active layer?-// return date > startDate;-// }-// }-export function getOrbitTrackTitle(def) {const { track } = def;const daynightValue = lodashGet(def, 'daynight[0]');