Search: small fixes to UX, cleanup of console.Log

This commit is contained in:
Pieter Vander Vennet 2024-09-15 02:25:57 +02:00
parent 3e2027a366
commit b92b74df69
7 changed files with 22 additions and 15 deletions

View file

@ -110,12 +110,15 @@ export default class SearchState {
const { layer, filter, index } = payload
for (const [name, otherLayer] of state.layerState.filteredLayers) {
otherLayer.isDisplayed.setData(name === layer.id)
const layer = otherLayer.layerDef
if(!layer.isNormal()){
continue
}
otherLayer.isDisplayed.setData(payload.layer.id === layer.id)
}
const flayer = state.layerState.filteredLayers.get(layer.id)
flayer.isDisplayed.set(true)
const filtercontrol = flayer.appliedFilters.get(filter.id)
console.log("Could not apply", layer.id, ".", filter.id, index)
if (filtercontrol.data === index) {
filtercontrol.setData(undefined)
} else {
@ -136,6 +139,5 @@ export default class SearchState {
this.state.selectedElement.set(localElement)
return
}
console.log(">>>",feature)
}
}