wip: remove unused code
This commit is contained in:
parent
ba0ba1a85d
commit
cd48267cf2
1 changed files with 0 additions and 15 deletions
|
@ -70,21 +70,6 @@ export default class Facets {
|
||||||
const names = Object.keys(defined)
|
const names = Object.keys(defined)
|
||||||
const facetProperties = this.compute(names, defined)
|
const facetProperties = this.compute(names, defined)
|
||||||
|
|
||||||
const filterFeatures = function () {
|
|
||||||
let found = false
|
|
||||||
this.map.eachBrowsableDataLayer((datalayer) => {
|
|
||||||
datalayer.resetLayer(true)
|
|
||||||
if (datalayer.hasDataVisible()) found = true
|
|
||||||
})
|
|
||||||
// TODO: display a results counter in the panel instead.
|
|
||||||
if (!found) {
|
|
||||||
this.map.ui.alert({
|
|
||||||
content: translate('No results for these facets'),
|
|
||||||
level: 'info',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const fields = names.map((name) => {
|
const fields = names.map((name) => {
|
||||||
let criteria = facetProperties[name]
|
let criteria = facetProperties[name]
|
||||||
let handler = 'FacetSearchChoices'
|
let handler = 'FacetSearchChoices'
|
||||||
|
|
Loading…
Reference in a new issue