Interactive interface for browsing global, full-resolution satellite imagery
While WMS palettes are not editable at this moment, hover should still work
Mike McGanncd39647f1a82
diff --git a/src/js/palettes/wv.palettes.legend.js b/src/js/palettes/wv.palettes.legend.jsindex 489bb2c2d..3597ffc40 100644--- a/src/js/palettes/wv.palettes.legend.js+++ b/src/js/palettes/wv.palettes.legend.js@@ -69,9 +69,7 @@ wv.palettes.legend = wv.palettes.legend || function(spec) {$parent.append($infoPanel);}- if ( layer.palette && layer.type !== "wms" && !layer.palette.single ) {- $colorbar.on("click", showCustomSelector)- .addClass("editable");+ if ( layer.palette && !layer.palette.single ) {$colorbar.on("mousemove", function(event) {showUnitHover(event);});@@ -82,7 +80,11 @@ wv.palettes.legend = wv.palettes.legend || function(spec) {of: $colorbar}});++ $colorbar.on("click", showCustomSelector)+ .addClass("editable");}+wv.palettes.colorbar(selector + " .wv-palettes-colorbar");model.events.on("add", updateLegend)