Browse Source

Leisure: add 'empty value' as separate filter option

pedestrian
parent
commit
43d3b0d8b8
  1. 12
      leisure.json

12
leisure.json

@ -52,7 +52,7 @@
"valueName": "{{ tagTrans(\"access\", value) }}",
"values": {
"*": {
"name": "{{ trans('any value') }}",
"name": "<{{ trans('any value') }}>",
"query": "nwr",
"weight": -1
},
@ -63,13 +63,17 @@
"discouraged": {},
"unknown": {
"name": "{{ trans(\"unknown\") }}",
"query": "(nwr[\"access\"=\"unknown\"];nwr[!access];)",
"query": "nwr[\"access\"=\"unknown\"]"
},
"!": {
"name": "<{{ trans('empty value') }}>",
"query": "nwr[!access]",
"weight": 1
},
"?": {
"name": "{{ trans(\"other\") }}",
"name": "<{{ trans(\"other\") }}>",
"query": "nwr[access][\"access\"!~\"^(public|private|permissive|customers|discouraged|unknown|yes)$\"]",
"weight": 1
"weight": 2
}
},
"emptyQuery": "nwr[\"access\"!=\"private\"]"

Loading…
Cancel
Save