Interactive interface for browsing global, full-resolution satellite imagery
check date's projection (#5322)
Patrick Moulden50b64329c2b9
diff --git a/web/js/mapUI/components/update-collections/updateCollections.js b/web/js/mapUI/components/update-collections/updateCollections.jsindex e63dd0a2a..9c65ce1e5 100644--- a/web/js/mapUI/components/update-collections/updateCollections.js+++ b/web/js/mapUI/components/update-collections/updateCollections.js@@ -68,7 +68,7 @@ function UpdateCollections () {const layerInCollections = collections[layer.id];if (!layerInCollections) return true; // Layer not in collections, needs to be updated- const collectionDate = layerInCollections.dates.some((d) => d.date === date);+ const collectionDate = layerInCollections.dates.some((d) => d.date === date && d.projection === proj.id);return !collectionDate || forceUpdate; // If date exists in layer collection, don't query layer});