From 677a07e3d26f3b8681f5d383df7fac679e533f39 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 7 Jan 2022 17:33:41 +0100 Subject: [PATCH] Add unsearch --- .../Sources/FilteringFeatureSource.ts | 1 - assets/themes/notes/notes.json | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Logic/FeatureSource/Sources/FilteringFeatureSource.ts b/Logic/FeatureSource/Sources/FilteringFeatureSource.ts index a6fcee559f..9495e33255 100644 --- a/Logic/FeatureSource/Sources/FilteringFeatureSource.ts +++ b/Logic/FeatureSource/Sources/FilteringFeatureSource.ts @@ -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)) { diff --git a/assets/themes/notes/notes.json b/assets/themes/notes/notes.json index 9685a59a66..2649a7efe1 100644 --- a/assets/themes/notes/notes.json +++ b/assets/themes/notes/notes.json @@ -100,6 +100,22 @@ } } ] + }, + { + "id": "not", + "options": [ + { + "osmTags": "_first_comment!~.*{search}.*", + "fields": [ + { + "name": "search" + } + ], + "question": { + "en": "Should not mention {search} in the first comment" + } + } + ] } ] }