From 26a5cefc452b34bc944d6ab3ffd9edbd3cca64a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Fri, 21 Aug 2020 09:05:46 +0200
Subject: [PATCH] leisure: add icons (unfin)

---
 leisure.json | 95 ++++++++++++++++++++++++++--------------------------
 1 file changed, 48 insertions(+), 47 deletions(-)

diff --git a/leisure.json b/leisure.json
index d3b6525..9522868 100644
--- a/leisure.json
+++ b/leisure.json
@@ -40,7 +40,8 @@
             "    - {{ tagTransList('sport', tags.sport) }}",
             "  {% endif %}",
             "{% endif %}"
-        ]
+        ],
+        "markerSign": "{{ const[tags.leisure]|raw }}"
     },
     "filter": {
         "access": {
@@ -76,54 +77,54 @@
         "leisure": {
             "name": "{{ trans('filter:type') }}",
             "type": "select",
-            "values": "{% set list = [] %}{% for k in const %}<option value=\"{{ k }}\">{% set list = list|merge([ k ]) %}{{ tagTrans('leisure', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[leisure][leisure!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
+            "values": "{% set list = [] %}{% for k, v in const %}<option value=\"{{ k }}\">{% set list = list|merge([ k ]) %}{{ tagTrans('leisure', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[leisure][leisure!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
             "sort": "natsort",
             "op": "has"
         }
     },
-    "const": [
-        "adult_gaming_centre",
-        "amusement_arcade",
-        "bandstand",
-        "beach_resort",
-        "bird_hide",
-        "bleachers",
-        "bowling_alley",
-        "common",
-        "dance",
-        "disc_golf_course",
-        "dog_park",
-        "escape_game",
-        "firepit",
-        "fishing",
-        "fitness_centre",
-        "fitness_station",
-        "garden",
-        "golf_course",
-        "hackerspace",
-        "horse_riding",
-        "ice_rink",
-        "indoor_play",
-        "marina",
-        "miniature_golf",
-        "nature_reserve",
-        "outdoor_seating",
-        "park",
-        "picnic_table",
-        "pitch",
-        "playground",
-        "sauna",
-        "slipway",
-        "sport",
-        "sports_cenre",
-        "sports_hall",
-        "stadium",
-        "summer_camp",
-        "swimming_area",
-        "swimming_pool",
-        "track",
-        "trampoline_park",
-        "water_park",
-        "wildlife_hide"
-    ]
+    "const": {
+        "adult_gaming_centre": "",
+        "amusement_arcade": "",
+        "bandstand": ":",
+        "beach_resort": "",
+        "bird_hide": "",
+        "bleachers": "",
+        "bowling_alley": "",
+        "common": "",
+        "dance": "",
+        "disc_golf_course": "",
+        "dog_park": "",
+        "escape_game": "",
+        "firepit": "",
+        "fishing": "",
+        "fitness_centre": "",
+        "fitness_station": "",
+        "garden": "",
+        "golf_course": "",
+        "hackerspace": "",
+        "horse_riding": "",
+        "ice_rink": "",
+        "indoor_play": "",
+        "marina": "",
+        "miniature_golf": "",
+        "nature_reserve": "",
+        "outdoor_seating": "",
+        "park": "P",
+        "picnic_table": "<img data-src='maki:picnic-site'>",
+        "pitch": "",
+        "playground": "⛹",
+        "sauna": "",
+        "slipway": "",
+        "sport": "",
+        "sports_cenre": "",
+        "sports_hall": "",
+        "stadium": "",
+        "summer_camp": "",
+        "swimming_area": "",
+        "swimming_pool": "",
+        "track": "",
+        "trampoline_park": "",
+        "water_park": "",
+        "wildlife_hide": ""
+    }
 }