Interactive interface for browsing global, full-resolution satellite imagery
check the right 'visible' property when filtering
Jason Kent35e2ef1cb1bc
diff --git a/web/js/map/ui.js b/web/js/map/ui.jsindex 9c0434818..6ba46475f 100644--- a/web/js/map/ui.js+++ b/web/js/map/ui.js@@ -723,10 +723,9 @@ export default function mapui(models, config, store, ui) {const layers = group.getLayers().getArray();const visibleLayers = activeLayers.filter(({ id }) => layers- .filter((l) => l.getVisible()).map(({ wv }) => lodashGet(wv, 'def.id')).includes(id),- );+ ).filter(({ visible }) => visible);lodashEach(visibleLayers, (def) => {const layerName = def.layer || def.id;