Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Palettes can now be excluded on a per product basis

Mike McGanne0bb67cb992a
diff --git a/data/config b/data/config
index 0680c123c..038ec18b3 100644
--- a/data/config
+++ b/data/config
@@ -43122,6 +43122,9 @@
"AIRS_Dust_Score": {
"bins": 14,
"description": "Aqua / AIRS",
+ "excludePalettes": [
+ "NEO_Aerosol_Depth"
+ ],
"max": "520",
"min": "360",
"name": "Dust Score",
diff --git a/dev/generate-config/config/products/AIRS_Dust_Score.json b/dev/generate-config/config/products/AIRS_Dust_Score.json
index 55598c3a2..e7354b87f 100644
--- a/dev/generate-config/config/products/AIRS_Dust_Score.json
+++ b/dev/generate-config/config/products/AIRS_Dust_Score.json
@@ -1,5 +1,6 @@
{
"description": "Aqua / AIRS",
+ "excludePalettes": ["NEO_Aerosol_Depth"],
"max": "520",
"min": "360",
"name": "Dust Score",
diff --git a/js/Worldview.js b/js/Worldview.js
index ed7a84c72..8fcd6f3d3 100644
--- a/js/Worldview.js
+++ b/js/Worldview.js
@@ -23,7 +23,7 @@
ns.BUILD_TIMESTAMP = "@BUILD_TIMESTAMP@";
ns.isDevelopment = function() {
- return ns.BUILD_TIMESTAMP === "@BUILD_TIMESTAMP@";
+ return ns.BUILD_TIMESTAMP.indexOf("BUILD_TIMESTAMP") >= 0;
};
/**
diff --git a/js/Worldview/Widget/Palette.js b/js/Worldview/Widget/Palette.js
index f92f095c3..9efd5b651 100644
--- a/js/Worldview/Widget/Palette.js
+++ b/js/Worldview/Widget/Palette.js
@@ -176,6 +176,11 @@ Worldview.Widget.Palette = function(containerId, config, spec) {
$.each(self.config.paletteOrder, function(index, name) {
var p = self.config.palettes[name];
+
+ // Skip this palette if configuration says to exclude
+ if ( $.inArray(name, productConfig.excludePalettes) >= 0 ) {
+ return;
+ }
if ( !p ) {
log.error("No such palette: " + name);
return;