diff --git a/public.json b/public.json index b13b8ae..851ba0c 100644 --- a/public.json +++ b/public.json @@ -36,15 +36,32 @@ ] }, "feature": { - "title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', tags.amenity)) }}", - "description": "{{ tagTrans('amenity', tags.amenity) }}", + "pre": [ + "{% if tags.drinking_water %}", + "{% set value = 'drinking_water' %}", + "{% else %}", + "{% set value = tags.amenity %}", + "{% endif %}" + ], + "title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', value)) }}", + "description": "{{ tagTrans('amenity', value) }}", "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}
{% endif %}", "markerSign": [ - "{% if const[tags.amenity] %}", - "{{ attribute(const, tags.amenity)|raw }}", + "{% if const[value] %}", + "{{ const[value]|raw }}", "{% endif %}" ] }, + "info": [ + "", + "{% for value, sign in const %}", + " ", + " ", + " ", + " ", + "{% endfor %}", + "
{{ markerCircle({})|raw }}
{{ sign|raw }}
{{ tagTrans('amenity', value) }}
" + ], "const": { "courthouse": "⚖", "clock": "",