mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 11:32:38 +02:00
fixup: only show datalayers with inCaption=true in switcher
This commit is contained in:
parent
254a2018f5
commit
a4abecbd2c
1 changed files with 1 additions and 0 deletions
|
@ -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(
|
||||
`<option value="${datalayer.id}">${datalayer.getName()}</option>`
|
||||
|
|
Loading…
Reference in a new issue