forked from MapComplete/MapComplete
		
	Add unsearch
This commit is contained in:
		
							parent
							
								
									91d2272861
								
							
						
					
					
						commit
						677a07e3d2
					
				
					 2 changed files with 16 additions and 1 deletions
				
			
		|  | @ -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)) { | ||||
|  |  | |||
|  | @ -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" | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue