Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

make sure layers that don't wrap get attributes

Jason Kent422bc0a5ecf4
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.js
index 1e128b665..17d3ac7a3 100644
--- a/web/js/map/layerbuilder.js
+++ b/web/js/map/layerbuilder.js
@@ -49,12 +49,13 @@ export default function mapLayerBuilder(config, cache, store) {
const getLayer = (createLayerFunc, def, options, attributes, wrapLayer) => {
const state = store.getState();
const layer = createLayerFunc(def, options, null, state, attributes);
+ layer.wv = attributes;
if (!wrapLayer) {
return layer;
}
const layerNext = createLayerFunc(def, options, 1, state, attributes);
const layerPrior = createLayerFunc(def, options, -1, state, attributes);
- layer.wv = attributes;
+
layerPrior.wv = attributes;
layerNext.wv = attributes;
return new OlLayerGroup({