{ "type": "overpass", "name": { "de": "Linz - Radrouten" }, "query": { "6": "relation[type=route][cycle_network='AT:Linz:Hauptrouten']", "12": "relation[type=route][cycle_network~'^AT:Linz:(Hauptrouten|Nebenrouten)$']" }, "members": true, "feature": { "pre": [ "{% set prio = tags.cycle_network %}" ], "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}", "description": "{{ const[tags.cycle_network].title }}", "markerSymbol": "", "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.cycle_network].color|default(const[''].color) })|raw }}", "priority": "{{ const[tags.cycle_network].priority|default(4) }}", "styles": "", "style:hover": { "width": "0" }, "style:selected": { "width": "0" } }, "memberFeature": { "pre": [ "{% set priority = 4 %}", "{% set network = '' %}", "{% set refs = [] %}", "{% set dirForward = false %}", "{% set dirBackward = false %}", "{% set hover = false %}", "{% set selected = false %}", "{% set proposedDirForward = false %}", "{% set proposedDirBackward = false %}", "{% set proposedPriority = 4 %}", "", "{% for master in masters if master.tags.route == 'bicycle' %}", " {% set masterNetwork = '' %}", " {% if master.tags.cycle_network|matches('^AT:Linz:') %}{% set masterNetwork = master.tags.cycle_network %}{% endif %}", " {% 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 %}", " {% if master.role == 'forward' %}{% set dirForward = true %}", " {% elseif master.role == 'backward' %}{% set dirBackward = true %}", " {% else %}{% set dirForward = true %}{% set dirBackward = true %}", " {% endif %}", " {% if master.flags.hover %}{% set hover = master.role|default('both') %}{% endif %}", " {% if master.flags.selected %}{% set selected = master.role|default('both') %}{% endif %}", "{% endfor %}", "", "{% for master in masters if master.tags.proposed == 'bicycle' %}", " {% set masterNetwork = '' %}", " {% if master.tags.cycle_network|matches('^AT:Linz:') %}{% set masterNetwork = master.tags.cycle_network %}{% endif %}", " {% set _p = const[masterNetwork].priority|default(4) %}", " {% if _p < proposedPriority %}", " {% set proposedPriority = _p %}", " {% set network = masterNetwork %}", " {% endif %}", " {% if master.role == 'forward' %}{% set proposedDirForward = true %}", " {% elseif master.role == 'backward' %}{% set proposedDirBackward = true %}", " {% else %}{% set proposedDirForward = true %}{% set proposedDirBackward = true %}", " {% endif %}", " {% if master.flags.hover %}{% set hover = master.role|default('both') %}{% endif %}", " {% if master.flags.selected %}{% set selected = master.role|default('both') %}{% endif %}", "{% endfor %}" ], "title": "", "body": [ "
{{ markerLine({ 'width': 4, color: data.color })|raw }} | ", "{{ value }} | ", "
{{ markerLine({ 'width': 4, color: data.proposedColor })|raw }} | ", "{{ value }} ({{ keyTrans('proposed') }}) | ", "