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": [ + "<table>", + "{% for value, data in const %}", + "{% if data.zoom <= map.zoom %}", + " <tr>", + " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", + " <td>{{ tagTrans('tourism', value) }}</td>", + " </tr>", + "{% endif %}", + "{% endfor %}", + "</table>" + ], "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