Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

prevent non wv layers in map

Ed Platocd25aa833973
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 4b75e625a..463b01022 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -714,7 +714,7 @@ export default function mapui(models, config, store, ui) {
const visibleLayers = activeLayers.filter(
({ id }) => layers
.filter((l) => l.getVisible())
- .map(({ wv }) => wv.def.id)
+ .map(({ wv }) => lodashGet(wv, 'def.id'))
.includes(id),
);