Browse Source

Lanes: split styles parameter into rows (need overpass-layer patch)

name-etym
parent
commit
d9398fd025
  1. 21
      lanes.json

21
lanes.json

@ -44,7 +44,26 @@
],
"markerSymbol": null,
"listMarkerSymbol": "line",
"styles": "{% if sidewalk_left %}sidewalk_left,{% endif %}{% if cycletrack_left %}cycletrack_left,{% endif %}{% if parking_left.width %}parking_left,{% if parking_left.dashDistance %}parking_left_dash,{% if parking_left_type == 'diagonal' %}parking_left_dash_diag,{% endif %}{% endif %}{% endif %}{% if cyclelane_left %}cyclelane_left,{% endif %}{% if lanes == 1 %}lane1{% else %}{% for i in 1..lanes - 1 %}lane{{ i }},mark{{ i }},{% endfor %}lane{{ lanes }}{% endif %}{% if cyclelane_right %},cyclelane_right{% endif %}{% if parking_right.width %},parking_right{% if parking_right.dashDistance %},parking_right_dash{% if parking_right_type == 'diagonal' %},parking_right_dash_diag{% endif %}{% endif %}{% endif %}{% if cycletrack_right %},cycletrack_right{% endif %}{% if sidewalk_right %},sidewalk_right{% endif %}",
"styles": [
"{% if sidewalk_left %}sidewalk_left,{% endif %}",
"{% if cycletrack_left %}cycletrack_left,{% endif %}",
"{% if parking_left.width %}parking_left,",
" {% if parking_left.dashDistance %}parking_left_dash,",
" {% if parking_left_type == 'diagonal' %}parking_left_dash_diag,",
"{% endif %}{% endif %}{% endif %}",
"{% if cyclelane_left %}cyclelane_left,{% endif %}",
"{% if lanes == 1 %}lane1{% else %}",
" {% for i in 1..lanes - 1 %}lane{{ i }},mark{{ i }},{% endfor %}",
" lane{{ lanes }}",
"{% endif %}",
"{% if cyclelane_right %},cyclelane_right{% endif %}",
"{% if parking_right.width %},parking_right",
" {% if parking_right.dashDistance %},parking_right_dash",
" {% if parking_right_type == 'diagonal' %},parking_right_dash_diag",
"{% endif %}{% endif %}{% endif %}",
"{% if cycletrack_right %},cycletrack_right{% endif %}",
"{% if sidewalk_right %},sidewalk_right{% endif %}"
],
"style": {
"width": "{{ width }}",
"pane": "casing",

Loading…
Cancel
Save