Interactive interface for browsing global, full-resolution satellite imagery
Added check to handle wrapping of sub-daily / geostationary imagery around the anti-meridian
Ryan Bollerd8d73628ad4a
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex 78ab2e3de..0cf3f7e3d 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -271,7 +271,7 @@ export function mapLayerBuilder(models, config, cache, mapUi, store) {// date = new Date(date.getTime() - (date.getTimezoneOffset() * 60000));date = new Date(date.getTime());}- if (day) {+ if (day && (def.period !== 'subdaily')) {date = util.dateAdd(date, 'day', day);}