Interactive interface for browsing global, full-resolution satellite imagery
distinguish between wrapX and wrapadjacentdays #2573
Benjamin King69b3732c5363
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex 09f5bb07e..b2c20eec9 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -307,7 +307,7 @@ export function mapLayerBuilder(models, config, cache, ui, store) {date = self.getRequestDates(def, options).closestDate;date = new Date(date.getTime());}- if (day && def.period !== 'subdaily') {+ if (day && def.wrapadjacentdays && def.period !== 'subdaily') {date = util.dateAdd(date, 'day', day);}const { tileMatrices, resolutions, tileSize } = matrixSet;@@ -398,7 +398,7 @@ export function mapLayerBuilder(models, config, cache, ui, store) {var tms = def.matrixSet;date = options.date || state.date[activeDateStr];- if (day) {+ if (day && def.wrapadjacentdays) {date = util.dateAdd(date, 'day', day);}@@ -524,7 +524,7 @@ export function mapLayerBuilder(models, config, cache, ui, store) {urlParameters = '';date = options.date || state.date[activeDateStr];- if (day) {+ if (day && def.wrapadjacentdays) {date = util.dateAdd(date, 'day', day);}urlParameters =