diff --git a/tourism_services.json b/tourism_services.json index 189ca70..5deadcf 100644 --- a/tourism_services.json +++ b/tourism_services.json @@ -19,6 +19,13 @@ }, "query": { "13": [ + "(", + "node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];", + "way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];", + "relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"]", + ")" + ], + "16": [ "(", "node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];", "way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];", @@ -28,19 +35,64 @@ }, "feature": { "description": "{{ tagTrans('tourism', tags.tourism) }}", - "markerSign": "{{ const[tags.tourism] }}" + "markerSign": "{{ const[tags.tourism].sign|raw }}" }, + "info": [ + "", + "{% for value, data in const %}", + "{% if data.zoom <= map.zoom %}", + " ", + " ", + " ", + " ", + "{% endif %}", + "{% endfor %}", + "
{{ markerCircle({})|raw }}
{{ data.sign|raw }}
{{ tagTrans('tourism', value) }}
" + ], "const": { - "alpine_hut": "🛌", - "apartment": "🛌", - "camp_site": "â›ē", - "caravan_site": "â›ē", - "chalet": "🛌", - "guest_house": "🛌", - "hostel": "🛌", - "hotel": "🛌", - "information": "ℹī¸", - "motel": "🛌", - "wilderness_hut": "" + "alpine_hut": { + "sign": "🛌", + "zoom": 13 + }, + "apartment": { + "sign": "🛌", + "zoom": 13 + }, + "camp_site": { + "sign": "â›ē", + "zoom": 13 + }, + "caravan_site": { + "sign": "â›ē", + "zoom": 13 + }, + "chalet": { + "sign": "🛌", + "zoom": 13 + }, + "guest_house": { + "sign": "🛌", + "zoom": 13 + }, + "hostel": { + "sign": "🛌", + "zoom": 13 + }, + "hotel": { + "sign": "🛌", + "zoom": 13 + }, + "motel": { + "sign": "🛌", + "zoom": 13 + }, + "wilderness_hut": { + "sign": "", + "zoom": 13 + }, + "information": { + "sign": "ℹī¸", + "zoom": 16 + } } -} +} \ No newline at end of file