wip: make explicit in browser.build that we set mode only if defined
This commit is contained in:
parent
0b98ef2f9d
commit
d805653e3c
1 changed files with 2 additions and 3 deletions
|
@ -13,8 +13,6 @@ export default class Browser {
|
||||||
}
|
}
|
||||||
|
|
||||||
set mode(value) {
|
set mode(value) {
|
||||||
// Force only if mode is known, otherwise keep current mode.
|
|
||||||
if (!value) return
|
|
||||||
// Store the mode so we can respect it when we redraw
|
// Store the mode so we can respect it when we redraw
|
||||||
if (['data', 'filters'].includes(value)) this.map.panel.mode = 'expanded'
|
if (['data', 'filters'].includes(value)) this.map.panel.mode = 'expanded'
|
||||||
else if (value === 'layers') this.map.panel.mode = 'condensed'
|
else if (value === 'layers') this.map.panel.mode = 'condensed'
|
||||||
|
@ -144,7 +142,8 @@ export default class Browser {
|
||||||
}
|
}
|
||||||
|
|
||||||
open(mode) {
|
open(mode) {
|
||||||
this.mode = mode
|
// Force only if mode is known, otherwise keep current mode.
|
||||||
|
if (mode) this.mode = mode
|
||||||
// Get once but use it for each feature later
|
// Get once but use it for each feature later
|
||||||
this.filterKeys = this.map.getFilterKeys()
|
this.filterKeys = this.map.getFilterKeys()
|
||||||
const container = DomUtil.create('div')
|
const container = DomUtil.create('div')
|
||||||
|
|
Loading…
Reference in a new issue