Search: tweak search functions

This commit is contained in:
Pieter Vander Vennet 2024-09-24 18:08:01 +02:00
parent 29dce0d468
commit 2fe2541b45
7 changed files with 31 additions and 15 deletions

View file

@ -794,15 +794,7 @@ export default class ThemeViewState implements SpecialVisualizationState {
last_click: this.lastClickObject,
search: this.searchState.locationResults,
}
if (specialLayers.summary) {
new ShowDataLayer(this.map, {
features: specialLayers.summary,
layer: new LayerConfig(<LayerConfigJson>summaryLayer, "summaryLayer"),
// doShowLayer: this.mapProperties.zoom.map((z) => z < maxzoom),
selectedElement: this.selectedElement,
})
}
this.closestFeatures.registerSource(specialLayers.favourite, "favourite")
if (this.layout?.lockLocation) {
@ -902,6 +894,15 @@ export default class ThemeViewState implements SpecialVisualizationState {
},
})
}
if (specialLayers.summary) {
new ShowDataLayer(this.map, {
features: specialLayers.summary,
layer: new LayerConfig(<LayerConfigJson>summaryLayer, "summaryLayer"),
// doShowLayer: this.mapProperties.zoom.map((z) => z < maxzoom),
selectedElement: this.selectedElement,
})
}
}
/**