Interactive interface for browsing global, full-resolution satellite imagery
Transparent attribute is optional
Mike McGann8895d56c6b9d
diff --git a/bin/wv-options-colormap b/bin/wv-options-colormapindex a488668d7..d50a3ed5b 100755--- a/bin/wv-options-colormap+++ b/bin/wv-options-colormap@@ -58,7 +58,9 @@ def process_file(file):for entry in entries:r,g,b = entry["@rgb"].split(",")- a = 0 if entry["@transparent"] == "true" else 255+ a = 255+ if "@transparent" in entry and entry["@transparent"] == "true":+ a = 0color = "{0:02x}{1:02x}{2:02x}{3:02x}".format(int(r), int(g), int(b), a)label = entry["@label"]if a == 0:diff --git a/src/js/layers/wv.layers.options.js b/src/js/layers/wv.layers.options.jsindex dbf5c1034..a2c2f5496 100644--- a/src/js/layers/wv.layers.options.js+++ b/src/js/layers/wv.layers.options.js@@ -162,7 +162,7 @@ wv.layers.options = wv.layers.options || function(config, models, layer) {var count = models.palettes.get(layerId).scale.colors.length;var imin = ( _.isUndefined(min) ) ? 0 : min;var imax = ( _.isUndefined(max) ) ? count - 1: max;-+current = [parseFloat($range.val()[0]), parseFloat($range.val()[1])];if ( !_.isEqual(current, [imin, imax]) ) {$range.val([imin, imax]);