diff --git a/tourism_attractions.json b/tourism_attractions.json index a07cb26..4a4a394 100644 --- a/tourism_attractions.json +++ b/tourism_attractions.json @@ -61,11 +61,10 @@ "type": { "name": "{{ trans('filter:type') }}", "show_default": "true", - "query": "nwr[{{ value }}]", + "query": "nwr[tourism^{{ value }}]", "type": "select", "key": "tourism", - "values": "{% set list = [] %}{% for t, v in const %}{% endfor %}", - "op": "has" + "values": "{% set list = [] %}{% for t, v in const %}{% endfor %}" } } } diff --git a/xmas.json b/xmas.json index 6c1d67b..d3ff883 100644 --- a/xmas.json +++ b/xmas.json @@ -21,7 +21,7 @@ "{% set isCurrent = meta.timestamp >= \"now\"|date_modify('-10 month')|date('Y') %}", "{% set bgColor = isCurrent ? '#f2756a' : 'red' %}" ], - "title": "{{ attribute(tags, \"xmas:name\")|default(trans(\"unnamed\")) }}", + "title": "{{ attribute(tags, \"xmas:name\")|default(tags.name) }}", "description": "{{ tagTransList(\"xmas:feature\", attribute(tags, \"xmas:feature\")) }}", "body": [ "{% if not isCurrent %}", @@ -73,10 +73,22 @@ "listMarkerSymbol": "{{ markerCircle({\"fillColor\":bgColor})|raw }}" }, "const": { - "market": "", - "tree": "", + "market": "", "shop": "", - "event": "" + "tree": "", + "crib": "", + "event": "", + "lighting": "", + "pyramid": "𓉴" + }, + "filter": { + "type": { + "name": "{{ trans('filter:type') }}", + "show_default": "true", + "query": "nwr[\"xmas:feature\"=\"{{ value }}\"]", + "type": "select", + "values": "{% for k, v in const %}{% endfor %}" + } }, "info": [ "",