Interactive interface for browsing global, full-resolution satellite imagery
update logic related to using backup dates
ryanweiler92c4b137d8f93d
diff --git a/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js b/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.jsindex 113805ac4..dea4365b4 100644--- a/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js+++ b/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js@@ -220,7 +220,11 @@ function TileMeasurement({ ui }) {// If we are using the best date, we need to make sure there are tiles on the map so we include the abort prodcedure parameter// This allows us to fall back to the static map if the best date fails as a last resortconst bestDate = findBestDate(measurementLayers, bestDates);- if (!fullImageryDate || bestDate === fullImageryDate) return verifyTilesAndHandleErrors();+ if (!fullImageryDate || bestDate === fullImageryDate){+ updateDate(bestDate, layerPeriod);+ verifyTilesAndHandleErrors();+ return+ }// Format date based on period and dispatch redux actionupdateDate(fullImageryDate, layerPeriod);