Search results: add menu, update searchers

This commit is contained in:
Pieter Vander Vennet 2024-09-06 23:01:00 +02:00
parent 9e0ae3321f
commit ee2b3ce329
10 changed files with 88 additions and 41 deletions

View file

@ -26,7 +26,6 @@ export default class Constants {
"last_click",
"favourite",
"summary",
"search"
] as const
/**
* Special layers which are not included in a theme by default
@ -39,7 +38,8 @@ export default class Constants {
"import_candidate",
"usersettings",
"icons",
"filters"
"filters",
"search"
] as const
/**
* Layer IDs of layers which have special properties through built-in hooks

View file

@ -554,6 +554,10 @@ export default class ThemeViewState implements SpecialVisualizationState {
this.previewedImage.setData(undefined)
return
}
if(this.selectedElement.data){
this.selectedElement.setData(undefined)
return
}
if (this.searchState.showSearchDrawer.data){
this.searchState.showSearchDrawer.set(false)
return
@ -561,7 +565,6 @@ export default class ThemeViewState implements SpecialVisualizationState {
if (this.guistate.closeAll()){
return
}
this.selectedElement.setData(undefined)
Zoomcontrol.resetzoom()
this.focusOnMap()
})