Interactive interface for browsing global, full-resolution satellite imagery
Fix broken tests #375
Benjamin King9a3a0ff696bf
diff --git a/web/css/checkbox.css b/web/css/checkbox.cssindex 14305a877..226cfbd54 100644--- a/web/css/checkbox.css+++ b/web/css/checkbox.css@@ -29,7 +29,7 @@background-color: #d54f21;}.wv-checkbox.gray.checked::before {- background-color:#808080;+ background-color: #808080;}.wv-checkbox.wv-checkbox-round::before {border-radius: 50%;diff --git a/web/css/layers.css b/web/css/layers.cssindex fc13ec30e..783952bc5 100644--- a/web/css/layers.css+++ b/web/css/layers.css@@ -519,7 +519,7 @@border: none;}.wv-layers-options-dialog .nav-item.active {- background:#fff;+ background: #fff;border-color: #fff;color: #000;}diff --git a/web/js/palettes/model.js b/web/js/palettes/model.jsindex f9d57c029..07cab56bc 100644--- a/web/js/palettes/model.js+++ b/web/js/palettes/model.js@@ -104,7 +104,8 @@ export function palettesModel(models, config) {if (min === 0) {min = undefined;}- if (max === self.get(layerId, index, groupStr).legend.colors.length - 1) {+ const legend = self.get(layerId, index, groupStr);+ if (legend.entries && legend.entries.values && max === legend.entries.values.length - 1) {max = undefined;}palette.min = min;