Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix lookup for custom palettes

Taylor Gunnoe067e2a1f1426
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index e2483118e..9865fd313 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -314,7 +314,7 @@ wv.map.ui = wv.map.ui || function(models, config) {
style: 'default'
};
if ( models.palettes.isActive(def.id) ) {
- var lookup = models.palettes.get(def.id).lookup;
+ var lookup = models.palettes.getLookup(def.id);
sourceOptions.tileClass = ol.wv.LookupImageTile.factory(lookup);
}
var layer = new ol.layer.Tile({
diff --git a/web/js/ol.wv/ol.wv.lookupimagetile.js b/web/js/ol.wv/ol.wv.lookupimagetile.js
index 7f1d068fa..cbfda0519 100644
--- a/web/js/ol.wv/ol.wv.lookupimagetile.js
+++ b/web/js/ol.wv/ol.wv.lookupimagetile.js
@@ -84,4 +84,4 @@ ol.wv.LookupImageTile.factory = function(lookup) {
return new ol.wv.LookupImageTile(lookup, tileCoord, state, src,
crossOrigin, tileLoadFunction);
};
-};
\ No newline at end of file
+};