Interactive interface for browsing global, full-resolution satellite imagery
Set beginning and end labels at 3 hour intervals
ZachTRice9a3c7a105f68
diff --git a/web/js/date/config.js b/web/js/date/config.jsindex c68e15e71..991961dbe 100644--- a/web/js/date/config.js+++ b/web/js/date/config.js@@ -604,10 +604,13 @@ export function timelineConfig(models, config, ui) {// Date of first printed boundary interval of this zoom leveltl.zoom.current.ticks.boundary.first = function () {var first = tl.ticks.normal.firstDate;+ var threeHour = null;+ if (first.getUTCHours() % 3 === 0) { threeHour = first.getUTCHours(); }return new Date(Date.UTC(first.getUTCFullYear(),first.getUTCMonth(),first.getUTCDate(),- first.getUTCHours()));+ threeHour,+ 0));};// Date of first printed normal tick@@ -617,19 +620,22 @@ export function timelineConfig(models, config, ui) {first.getUTCMonth(),first.getUTCDate(),first.getUTCHours(),- first.getUTCMinutes() - 1));+ first.getUTCMinutes() - 10));};// Date of last printed boundary interval of this zoom leveltl.zoom.current.ticks.boundary.last = function () {var last = tl.ticks.normal.lastDate;+ var threeHour = null;+ if (last.getUTCHours() % 3 === 0) { threeHour = last.getUTCHours(); }return new Date(Date.UTC(last.getUTCFullYear(),last.getUTCMonth(),last.getUTCDate(),- last.getUTCHours() + 1));+ threeHour,+ 0));};- // Value for hovered normal label+ // Value for normal tick hover labeltl.zoom.current.ticks.normal.hover = function (d) {// No modifications to date obj at this zoom levelreturn d;@@ -645,7 +651,7 @@ export function timelineConfig(models, config, ui) {d.getUTCMinutes());};- // Value for hovered boundary tick+ // Value for boundary ribbon hover labeltl.zoom.current.ticks.boundary.hover = function (d) {d = new Date(d.getTime() - (d.getTimezoneOffset() * 60000));return new Date(d.getUTCFullYear(),