From 67acf3d327435bfdda0a35f173806e3e0893f6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 27 Mar 2022 22:19:46 +0200 Subject: [PATCH] Wien Hauptradverkehrsnetz - improvements --- wien-hvnr.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wien-hvnr.json b/wien-hvnr.json index ba0a437..bd31550 100644 --- a/wien-hvnr.json +++ b/wien-hvnr.json @@ -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",