Browse Source

Cycle Directions: improvements

name-etym
parent
commit
2a47c93b10
  1. 18
      cycle_directions.json

18
cycle_directions.json

@ -11,6 +11,7 @@
"way[cycleway];", "way[cycleway];",
"way[\"cycleway:left\"];", "way[\"cycleway:left\"];",
"way[\"cycleway:right\"];", "way[\"cycleway:right\"];",
"way[oneway];",
")" ")"
] ]
}, },
@ -27,9 +28,18 @@
"listMarkerSymbol": "line", "listMarkerSymbol": "line",
"styles": "default,left,right", "styles": "default,left,right",
"style": { "style": {
"width": [
"{% if tags.highway == 'cycleway' %}",
"3",
"{% else %}",
"7",
"{% endif %}"
],
"color": [ "color": [
"{% if tags.highway == 'cycleway' %}", "{% if tags.highway == 'cycleway' %}",
"#007f00", "#007f00",
"{% else %}",
"#ffffff7f",
"{% endif %}" "{% endif %}"
], ],
"text": [ "text": [
@ -78,7 +88,9 @@
"{% elseif driving_side == 'left' and oneway >= 0 and tags.cycleway in [ 'opposite_lane', 'opposite_track' ] %}", "{% elseif driving_side == 'left' and oneway >= 0 and tags.cycleway in [ 'opposite_lane', 'opposite_track' ] %}",
"🡪 ", "🡪 ",
"{% endif %}" "{% endif %}"
]
],
"textRepeat": "1",
"textOffset": "0"
}, },
"style:right": { "style:right": {
"color": [ "color": [
@ -103,7 +115,9 @@
"{% elseif driving_side == 'left' and oneway <= 0 and tags.cycleway in [ 'opposite_lane', 'opposite_track' ] %}", "{% elseif driving_side == 'left' and oneway <= 0 and tags.cycleway in [ 'opposite_lane', 'opposite_track' ] %}",
"🡪 ", "🡪 ",
"{% endif %}" "{% endif %}"
]
],
"textRepeat": "1",
"textOffset": "0"
} }
}, },
"info": [ "info": [

Loading…
Cancel
Save