Add unsearch

This commit is contained in:
Pieter Vander Vennet 2022-01-07 17:33:41 +01:00
parent 91d2272861
commit 677a07e3d2
2 changed files with 16 additions and 1 deletions

View file

@ -88,7 +88,6 @@ export default class FilteringFeatureSource implements FeatureSourceForLayer, Ti
}
const tagsFilter = layer.appliedFilters.data;
console.log("Current filters for "+layer.layerDef.id+" are ",tagsFilter)
for (const filter of tagsFilter ?? []) {
const neededTags = filter.filter.options[filter.selected].osmTags
if (!neededTags.matchesProperties(f.feature.properties)) {

View file

@ -100,6 +100,22 @@
}
}
]
},
{
"id": "not",
"options": [
{
"osmTags": "_first_comment!~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "Should <b>not</b> mention {search} in the first comment"
}
}
]
}
]
}