From bedbfe18a16592f855a733bc160589199169f47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 28 Jul 2018 22:14:36 +0200 Subject: [PATCH] cycle_routes: add map key, list symbols, improve colors --- cycle_routes.json | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/cycle_routes.json b/cycle_routes.json index 2a1da864e..5db16605f 100644 --- a/cycle_routes.json +++ b/cycle_routes.json @@ -17,6 +17,7 @@ "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 })|raw }}", "styles": "" }, "memberFeature": { @@ -59,16 +60,32 @@ }, "const": { "icn": { - "color": "#ff0000" + "color": "#ff0000", + "zoom": 6 }, "ncn": { - "color": "#ff007f" + "color": "#ff00ba", + "zoom": 9 }, "rcn": { - "color": "#7f00ff" + "color": "#ba00ff", + "zoom": 12 }, "lcn": { - "color": "#0000ff" + "color": "#0000ff", + "zoom": 15 } - } + }, + "info": [ + "", + "{% for value, data in const %}", + "{% if data.zoom <= map.zoom %}", + " ", + " ", + " ", + " ", + "{% endif %}", + "{% endfor %}", + "
{{ markerLine({ 'width': 4, color: data.color })|raw }}{{ tagTrans('network', value) }}
" + ] }