{ "type": "overpass", "name": { "ca": "Rutes Excursionistes", "cs": "Turistické trasy", "de": "Wanderrouten", "en": "Hiking routes", "es": "Rutas de senderismo", "fr": "Itinéraires pédestres", "gl": "Rotas sendeiristas", "hu": "Turistautak", "it": "Percorsi escursionistici", "ja": "ハイキングルート", "nb": "Gåruter", "nl": "Wandelroutes", "oc": "Itineraris per escorregudas", "pl": "Trasy turystyczne", "pt": "Rotas de caminhada", "pt-br": "Rotas de caminhada", "ro": "Trasee de drumeție", "ru": "Туристические маршруты", "sr": "Трасе за планинарење", "tr": "Yürüyüş Rotaları" }, "query": { "10": "relation[type=route][route~\"^(|.*;)hiking(|;.*)$\"][network~\"^(|.*;)(iwn)(|;.*)$\"]", "11": "relation[type=route][route~\"^(|.*;)hiking(|;.*)$\"][network~\"^(|.*;)(iwn|nwn)(|;.*)$\"]", "12": "relation[type=route][route~\"^(|.*;)hiking(|;.*)$\"][network~\"^(|.*;)(iwn|nwn|rwn)(|;.*)$\"]", "14": "relation[type=route][route~\"^(|.*;)hiking(|;.*)$\"]" }, "members": true, "feature": { "pre": [ "{% set network = tags.network %}", "{% for n in tags.network|split(';') %}", "{% if n|matches('wn$') %}{% set network = n %}{% endif %}", "{% endfor %}" ], "priority": "{{ const[network].priority|default(4) }}", "description": "{% if network %}{{ tagTrans('network', network) }}{% endif %}", "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[network|default('')].color|default(const[''].color) })|raw }}", "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}", "styles": "", "markerSymbol": "" }, "memberFeature": { "pre": [ "{% set priority = 4 %}", "{% set network = '' %}", "{% set refs = [] %}", "", "{% for master in masters %}", " {% set masterNetwork = '' %}", " {% for n in master.tags.network|split(';') %}", " {% if n|matches('wn$') %}{% set masterNetwork = n %}{% endif %}", " {% endfor %}", " {% set _p = const[masterNetwork].priority|default(4) %}", " {% if _p < priority %}", " {% set priority = _p %}", " {% set network = masterNetwork %}", " {% endif %}", " {% if master.tags.ref %}", " {% set refs = refs|merge([ master.tags.ref ]) %}", " {% endif %}", "{% endfor %}" ], "body": [ "

Routes

", "" ], "listExclude": "1", "style": { "color": "{{ const[network].color }}", "width": 4, "opacity": 1, "text": "{{ refs|join(' · ') }} ", "textRepeat": "1", "textOffset": "12", "textFontWeight": "bold" } }, "const": { "iwn": { "color": "#ff0000", "priority": 0, "zoom": 10 }, "nwn": { "color": "#ff00ba", "priority": 1, "zoom": 11 }, "rwn": { "color": "#ba00ff", "priority": 2, "zoom": 12 }, "lwn": { "color": "#0000ff", "priority": 3, "zoom": 14 }, "": { "color": "#007fff", "priority": 4, "zoom": 14 } }, "info": [ "", "{% for value, data in const %}", "{% if data.zoom <= map.zoom %}", " ", " ", " ", " ", "{% endif %}", "{% endfor %}", "
{{ markerLine({ 'width': 4, color: data.color })|raw }}{% if value %}{{ tagTrans('network', value) }}{% else %}{{ trans('unknown') }}{% endif %}
" ] }