From 1bc3ef9c89082140e7d96646baaf7a6b52073c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 9 Mar 2026 11:02:54 +0100 Subject: [PATCH] gastro: define icons in 'const' --- gastro.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gastro.yaml b/gastro.yaml index 27b655d..da8287d 100644 --- a/gastro.yaml +++ b/gastro.yaml @@ -51,7 +51,8 @@ feature: {% endif %} markerSign: | - {% if tags.amenity=='bar' %}🍸{% elseif tags.amenity=='biergarten'%}🍻{% elseif tags.amenity=='cafe' %}☕{% elseif tags.amenity=='fast_food' %}🍔{% elseif tags.amenity=='ice_cream' %}🍨{% elseif tags.amenity=='pub' %}🍺{% else %}🍴{% endif %} + {% set firstType = tags.amenity|split(';')[0] %} + {{ const.type[firstType]|default(const.type.restaurant)|raw }} filter: amenity: name: | @@ -232,3 +233,11 @@ const: diet:lactose_free: {} diet:halal: {} diet:kosher: {} + type: + restaurant: '🍴' + bar: '🍸' + biergarten: '🍻' + cafe: '☕' + fast_food: '🍔' + ice_cream: '🍨' + pub: '🍺'