|
|
{ "type": "overpass", "name": { "ast": "Turismu", "cs": "Turistika", "de": "Tourismus", "el": "Τουρισμός", "en": "Tourism", "et": "Turism", "fr": "Tourisme", "hu": "Turisztikai szolgáltatások", "it": "Turismo", "ja": "観光", "nl": "Toerisme", "pl": "Turystyka", "pt": "Turismo", "pt-br": "Serviços de turismo", "ro": "Turism", "ru": "Туризм", "uk": "Туризм" }, "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)$\"];", "nwr[office~\"^(guide|tourism|tourist_accommodation)$\"];", ")" ], "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)$\"];", "relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];", "nwr[office~\"^(guide|tourism|tourist_accommodation)$\"];", ")" ] }, "feature": { "pre": [ "{% if tags.tourism %}", " {% set key = 'tourism' %}", " {% set value = tags.tourism %}", "{% else %}", " {% set key = 'office' %}", " {% set value = tags.office %}", "{% endif %}" ], "description": [ "{% if key == 'office' %}", " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})", "{% else %}", " {{ tagTrans(key, value) }}", "{% endif %}" ], "markerSign": [ "{% set data = const[key ~ '=' ~ value] %}", "{% if data %}", "{{ data.sign|raw }}", "{% endif %}" ] }, "info": [ "<table>", "{% for kv, data in const %}", "{% if data.zoom <= map.zoom %}", " <tr>", " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", " <td>", " {% if kv|split('=')[0] == 'office' %}", " {{ keyTrans('office') }}", " ({{ tagTrans('office', kv|split('=')[1]) }})", " {% else %}", " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}", " {% endif %}", " </td>", " </tr>", "{% endif %}", "{% endfor %}", "</table>" ], "const": { "tourism=alpine_hut": { "sign": "🛌", "zoom": 13 }, "tourism=apartment": { "sign": "🛌", "zoom": 13 }, "tourism=camp_site": { "sign": "⛺", "zoom": 13 }, "tourism=caravan_site": { "sign": "⛺", "zoom": 13 }, "tourism=chalet": { "sign": "🛌", "zoom": 13 }, "tourism=guest_house": { "sign": "🛌", "zoom": 13 }, "tourism=hostel": { "sign": "🛌", "zoom": 13 }, "tourism=hotel": { "sign": "🛌", "zoom": 13 }, "tourism=motel": { "sign": "🛌", "zoom": 13 }, "tourism=wilderness_hut": { "sign": "", "zoom": 13 }, "office=tourism": { "sign": "<i class=\"fas fa-info-circle\"></i>", "zoom": 13 }, "office=guide": { "sign": "<i class=\"fas fa-flag\"></i>", "zoom": 13 }, "office=tourist_accommodation": { "sign": "🛌", "zoom": 13 }, "tourism=information": { "sign": "ℹ️", "zoom": 16 } } }
|