{ "type": "overpass", "name": { "de": "Radrouten", "en": "Cycle Routes", "fr": "Itinéraires vélo", "pt": "Ciclovias", "pt-br": "Ciclorrotas" }, "query": { "6": "relation[type=route][route=bicycle][network~'^(icn)$']", "9": "relation[type=route][route=bicycle][network~'^(icn|ncn)$']", "12": "relation[type=route][route=bicycle][network~'^(icn|ncn|rcn)$']", "15": "relation[type=route][route=bicycle]" }, "members": true, "feature": { "priority": "{{ {icn:0,ncn:1,rcn:2,lcn:3}[tags.network] }}", "description": "{{ tagTrans('network', tags.network) }}", "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network].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 }}{% else %}{{ trans('unnamed') }}{% endif %}", "styles": "", "markerSymbol": "" }, "memberFeature": { "pre": [ "{% set priority = 4 %}", "{% set network = '' %}", "{% set refs = [] %}", "", "{% for master in masters %}", " {% set _p = {icn:0,ncn:1,rcn:2,lcn:3}[master.tags.network]|default(4) %}", " {% if _p < priority %}", " {% set priority = _p %}", " {% set network = master.tags.network %}", " {% endif %}", " {% if master.tags.ref %}", " {% set refs = refs|merge([ master.tags.ref ]) %}", " {% endif %}", "{% endfor %}" ], "title": "", "body": [ "
{{ markerLine({ 'width': 4, color: data.color })|raw }} | ", "{% if value %}{{ tagTrans('network', value) }}{% else %}{{ trans('unknown') }}{% endif %} | ", "