Merge pull request #1837 from umap-project/browser-show-list

fix: always display data in browser unless in "layers" mode
This commit is contained in:
Yohan Boniface 2024-05-17 17:42:32 +02:00 committed by GitHub
commit 6113ac362e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,7 +62,7 @@ export default class Browser {
addDataLayer(datalayer, parent) {
let className = `datalayer ${datalayer.getHidableClass()}`
if (this.map.panel.mode !== 'condensed') className += ' show-list'
if (this.mode !== 'layers') className += ' show-list'
const container = DomUtil.create('div', className, parent),
headline = DomUtil.create('h5', '', container)
container.id = this.datalayerId(datalayer)