Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

#142 Fix max palette value loading from permalink

Taylor Gunnoebcf223864371
diff --git a/web/js/palettes/wv.palettes.model.js b/web/js/palettes/wv.palettes.model.js
index afcfe97c8..911423a1c 100644
--- a/web/js/palettes/wv.palettes.model.js
+++ b/web/js/palettes/wv.palettes.model.js
@@ -200,7 +200,7 @@ wv.palettes.model = wv.palettes.model || function(models, config) {
};
var getMaxValue = function(v) {
- return ( v.length ) ? v[1]: v;
+ return ( v.length ) ? v[v.length-1]: v;
};
self.save = function(state) {