Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

linking lookupImageTile

Benjamin King3c628b97f7cd
diff --git a/web/js/map/wv.map.layerbuilder.js b/web/js/map/wv.map.layerbuilder.js
index 2ad508758..ba7087ed7 100644
--- a/web/js/map/wv.map.layerbuilder.js
+++ b/web/js/map/wv.map.layerbuilder.js
@@ -3,6 +3,7 @@ import ol from 'openlayers';
import cloneDeep from 'lodash/cloneDeep';
import merge from 'lodash/merge';
import each from 'lodash/each';
+import {lookupFactory} from '../ol/lookupimagetile';
export function mapLayerBuilder(models, config, cache, Parent) {
var self = {};
@@ -180,7 +181,7 @@ export function mapLayerBuilder(models, config, cache, Parent) {
};
if (models.palettes.isActive(def.id)) {
var lookup = models.palettes.getLookup(def.id);
- sourceOptions.tileClass = ol.wv.LookupImageTile.factory(lookup);
+ sourceOptions.tileClass = lookupFactory(lookup);
}
var layer = new ol.layer.Tile({
extent: extent,
@@ -257,7 +258,7 @@ export function mapLayerBuilder(models, config, cache, Parent) {
if (models.palettes.isActive(def.id)) {
var lookup = models.palettes.getLookup(def.id);
- sourceOptions.tileClass = ol.wv.LookupImageTile.factory(lookup);
+ sourceOptions.tileClass = lookupFactory(lookup);
}
var layer = new ol.layer.Tile({
extent: extent,
diff --git a/web/js/ol.wv/lookupimagetile.js b/web/js/ol/lookupimagetile.js
similarity index 100%
rename from web/js/ol.wv/lookupimagetile.js
rename to web/js/ol/lookupimagetile.js