Interactive interface for browsing global, full-resolution satellite imagery
WV-1126: Active layers not valid in the current projection are no longer considered when contructing the palette list for the permlink
Mike McGann797a931b8fd1
diff --git a/web/js/palettes/wv.palettes.model.js b/web/js/palettes/wv.palettes.model.jsindex 2b9ed16ba..41af10be4 100644--- a/web/js/palettes/wv.palettes.model.js+++ b/web/js/palettes/wv.palettes.model.js@@ -139,7 +139,7 @@ wv.palettes.model = wv.palettes.model || function(models, config) {throw new Error("No layers in state");}_.each(self.active, function(def, layerId) {- if ( !_.find(models.layers.active, {id: layerId}) ) {+ if ( !_.find(models.layers.get(), {id: layerId}) ) {return;}var attr = _.find(state.l, {id: layerId}).attributes;