Interactive interface for browsing global, full-resolution satellite imagery
Change showSubdaily to a boolean check and adds documentation
ZachTRiceb0cbf6f637de
diff --git a/doc/testing.md b/doc/testing.mdindex bdc6718f2..919b2b8e7 100644--- a/doc/testing.md+++ b/doc/testing.md@@ -88,3 +88,4 @@ To run tests for both browsers in sequence: `npm run e2e`.| markDownloads | boolean | If any value is specified, layers that can be downloaded will be marked in red in the Add Layers tab. || debugPalette | boolean | If any value is specified, a black debugging custom palette will be added to assist in finding invalid lookup table mappings. || showError | boolean | If any value is specified, an error dialog will be shown on startup. |+| showSubdaily | boolean | If any value is specified, the hour input, minute input and "minutes" timeline zoom option will be shown. |diff --git a/web/js/date/config.js b/web/js/date/config.jsindex 1a735f0a0..52c24dadf 100644--- a/web/js/date/config.js+++ b/web/js/date/config.js@@ -37,8 +37,7 @@ export function timelineConfig(models, config, ui) {// Needs reworked. Repeated from layers/active/toggleSubdailyvar activeLayers = models.layers.active;var subdailyFound = false;- var showSubdaily = config.parameters.showSubdaily;- if (showSubdaily === 'true') {+ if (config.parameters.showSubdaily) {subdailyFound = true;} else {for (var i = 0; i < activeLayers.length; i++) {diff --git a/web/js/layers/active.js b/web/js/layers/active.jsindex ed2c238f3..d4d26a6bc 100644--- a/web/js/layers/active.js+++ b/web/js/layers/active.js@@ -372,10 +372,9 @@ export function layersActive(models, ui, config) {var subdailyCheck = function () {var activeLayers = models.layers.active;var currentProjection = models.proj.selected.id;- var showSubdaily = config.parameters.showSubdaily;var check;- if (showSubdaily === 'true') {+ if (config.parameters.showSubdaily) {check = true;} else {lodashEach(activeLayers, function(activeLayer) {