Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Don't allow palette changes for WMS or single values

Mike McGann2559835508d7
diff --git a/src/js/palettes/wv.palettes.legend.js b/src/js/palettes/wv.palettes.legend.js
index 3fc64c966..0cf328724 100644
--- a/src/js/palettes/wv.palettes.legend.js
+++ b/src/js/palettes/wv.palettes.legend.js
@@ -61,9 +61,11 @@ wv.palettes.legend = wv.palettes.legend || function(spec) {
showUnitHover(event);
}).on("mouseout", function() {
showUnitRange();
- }).on("click", function() {
- showCustomSelector();
});
+
+ if ( layer.type !== "wms" && !layer.palette.single ) {
+ $colorbar.on("click", showCustomSelector);
+ }
wv.palettes.colorbar(selector + " .wv-palettes-colorbar");
model.events
.on("add", updateLegend)