Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Request new layer dates with hours. minutes and seconds - Change `layerkey` to build an ISOString that includes `Thh:mm:ssZ` - Add checks for `subdaily` dates

ZachTRice71f184160085
diff --git a/web/js/layers/model.js b/web/js/layers/model.js
index b1f3365a0..13fe1752a 100644
--- a/web/js/layers/model.js
+++ b/web/js/layers/model.js
@@ -389,7 +389,7 @@ export function layersModel(models, config) {
if (!def.projections[projId]) {
return;
}
- if (spec.dynamic && !['daily', 'monthly', 'yearly'].includes(def.period)) {
+ if (spec.dynamic && !['subdaily', 'daily', 'monthly', 'yearly'].includes(def.period)) {
return;
}
if (spec.renderable && !self.isRenderable(def.id)) {
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index cff2b32b5..cb9883047 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -364,7 +364,7 @@ export function mapui(models, config) {
var updateDate = function () {
var defs = models.layers.get();
lodashEach(defs, function (def) {
- if (!['daily', 'monthly', 'yearly'].includes(def.period)) {
+ if (!['subdaily', 'daily', 'monthly', 'yearly'].includes(def.period)) {
return;
}
var index = findLayerIndex(def);