Interactive interface for browsing global, full-resolution satellite imagery
WV-3042 Support TEMPO layer (#5037)
Patrick Mouldend7ae93e936b0
diff --git a/web/js/map/granule/util.js b/web/js/map/granule/util.jsindex 1dbcf19a4..19d441334 100644--- a/web/js/map/granule/util.js+++ b/web/js/map/granule/util.js@@ -164,7 +164,7 @@ export const getCMRQueryDates = (crs, selectedDate) => {* @returns*/export const getParamsForGranuleRequest = (def, date, crs) => {- const dayNightFilter = 'DAY';+ const dayNightFilter = def.daynight[0];const bboxForProj = {[CRS.WEB_MERCATOR]: [-180, -65, 180, 65],[CRS.GEOGRAPHIC]: [-180, -65, 180, 65],@@ -175,9 +175,9 @@ export const getParamsForGranuleRequest = (def, date, crs) => {const getShortName = () => {try {- let { shortName } = def.conceptIds[0];- [shortName] = shortName.split('_');- return shortName;+ const { shortName } = def.conceptIds[0];+ // remove _NRT from shortName+ return shortName.replace('_NRT', '');} catch (e) {console.error(`Could not get shortName for a collection associated with layer ${def.id}`);}