From a4abecbd2ce36b49d32c9c451e8a98a59f71fe6f Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 17 Mar 2025 21:52:18 +0100 Subject: [PATCH] fixup: only show datalayers with inCaption=true in switcher --- umap/static/umap/js/modules/ui/bar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/modules/ui/bar.js b/umap/static/umap/js/modules/ui/bar.js index 146ec3b3..05adefd8 100644 --- a/umap/static/umap/js/modules/ui/bar.js +++ b/umap/static/umap/js/modules/ui/bar.js @@ -211,6 +211,7 @@ export class BottomBar extends WithTemplate { this.elements.filter.hidden = !showMenus || !this._umap.properties.facetKey this.elements.layers.innerHTML = '' this._umap.eachDataLayer((datalayer) => { + if (!datalayer.options.inCaption) return this.elements.layers.appendChild( Utils.loadTemplate( ``