|
|
@ -14,10 +14,10 @@ |
|
|
|
"{% 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": "{{ prio }}", |
|
|
|
"description": "{{ const[tags.cycle_network].title }}", |
|
|
|
"markerSymbol": "", |
|
|
|
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[network].color|default(const[''].color) })|raw }}", |
|
|
|
"priority": "{{ const[network].priority|default(4) }}", |
|
|
|
"priority": "{{ const[tags.cycle_network].priority|default(4) }}", |
|
|
|
"styles": "", |
|
|
|
"style:hover": { |
|
|
|
"width": "0" |
|
|
@ -36,7 +36,7 @@ |
|
|
|
"{% set hover = false %}", |
|
|
|
"{% set selected = false %}", |
|
|
|
"", |
|
|
|
"{% for master in masters %}", |
|
|
|
"{% for master in masters if master.tags.route == 'bicycle' %}", |
|
|
|
" {% set masterNetwork = '' %}", |
|
|
|
" {% if master.tags.cycle_network|matches('^AT:Vienna:') %}{% set masterNetwork = master.tags.cycle_network %}{% endif %}", |
|
|
|
" {% set _p = const[masterNetwork].priority|default(4) %}", |
|
|
@ -77,7 +77,7 @@ |
|
|
|
"listExclude": "1", |
|
|
|
"styles": "default{% if hover %},hover{% endif %}{% if selected %},selected{% endif %}", |
|
|
|
"style": { |
|
|
|
"width": "4", |
|
|
|
"width": "{% if priority < 4 %}4{% else %}0{% endif %}", |
|
|
|
"color": "{{ const[network].color }}", |
|
|
|
"opacity": "1", |
|
|
|
"lineCap": "{% if not dirForward or not dirBackward %}butt{% else %}round{% endif %}", |
|
|
@ -87,7 +87,7 @@ |
|
|
|
"text": "{{ refs|join(' · ') }} ", |
|
|
|
"textRepeat": "1", |
|
|
|
"textOffset": "12", |
|
|
|
"pattern": "{% if dirForward and dirBackward %}{% else %}arrowHead{% endif %}", |
|
|
|
"pattern": "{% if priority < 4 and dirForward and dirBackward %}{% else %}arrowHead{% endif %}", |
|
|
|
"pattern-offset": "{% if dirBackward %}4{% else %}30.5{% endif %}", |
|
|
|
"pattern-repeat": "35", |
|
|
|
"pattern-polygon": "true", |
|
|
|