Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix subdaily permalink flag #1344

Benjamin King5bd2a2d061e2
diff --git a/web/js/date/timeline-input.js b/web/js/date/timeline-input.js
index 87b9b25bc..ea92b2d14 100644
--- a/web/js/date/timeline-input.js
+++ b/web/js/date/timeline-input.js
@@ -151,6 +151,12 @@ export function timelineInput(models, config, ui) {
var min = model.minDate();
var max = model.maxDate();
var date = model[model.activeDate];
+ var maxZoom = model.maxZoom;
+ if (config.parameters.showSubdaily) {
+ document.getElementById('timeline-header').classList.add('subdaily');
+ maxZoom = 4;
+ }
+
return {
width: '120',
height: '30',
@@ -158,7 +164,7 @@ export function timelineInput(models, config, ui) {
idSuffix: 'animation-widget-main',
minDate: min,
maxDate: max,
- maxZoom: model.maxZoom,
+ maxZoom: maxZoom,
onDateChange: onDateSelect,
date: date,
fontSize: null