Interactive interface for browsing global, full-resolution satellite imagery
tile-measurement.js: Appended bestDates to end of list of dates to check for full imagery
Jason Hurley6a6e701cd296
diff --git a/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js b/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.jsindex 0d950c239..dabb4dc76 100644--- a/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js+++ b/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js@@ -67,6 +67,9 @@ function TileMeasurement({ ui }) {// #4 Loop through layers and dates to find the first date that satisfies full imagery thresholdsconst findFullImageryDate = async (layers, dates) => {console.log('Date range found... Finding date with satisfactory imagery...');+ const firstLayerWithBestDate = findBestDate(layers, bestDates);+ if (firstLayerWithBestDate) dates.push(firstLayerWithBestDate);+for (let i = 0; i < dates.length; i += 1) {let layersMeetingThresholdForDate = 0;console.log(`-----Loop #${i + 1} for date ${dates[i]}-----`);