Browse Source

footways: longer dashes for non-segregated cycleway/footways

parking-lanes
parent
commit
c5d2052a4b
  1. 22
      footways.yaml

22
footways.yaml

@ -214,7 +214,9 @@ feature:
'style:main': { 'style:main': {
width: cycleway and tags.segregated == 'yes' ? 2 : const.categories[category].width|default(3), width: cycleway and tags.segregated == 'yes' ? 2 : const.categories[category].width|default(3),
color: const.categories[category].color, color: const.categories[category].color,
dashArray: tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') ? '3,3' : '',
dashArray: tags.highway == 'steps' ? '3,3' :
cycleway and tags.segregated != 'yes' ? '8,8' :
'',
lineCap: tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') ? 'butt' : 'round', lineCap: tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') ? 'butt' : 'round',
offset: cycleway and tags.segregated == 'yes' ? 1 : 0 offset: cycleway and tags.segregated == 'yes' ? 1 : 0
}, },
@ -222,8 +224,8 @@ feature:
fill: false, fill: false,
width: cycleway and tags.segregated == 'yes' ? 2 : 3, width: cycleway and tags.segregated == 'yes' ? 2 : 3,
color: const.categories.cycleway.color, color: const.categories.cycleway.color,
dashArray: cycleway and tags.segregated != 'yes' ? '3,3' : '',
dashOffset: 3,
dashArray: cycleway and tags.segregated != 'yes' ? '8,8' : '',
dashOffset: 8,
lineCap: cycleway and tags.segregated != 'yes' ? 'butt' : 'round', lineCap: cycleway and tags.segregated != 'yes' ? 'butt' : 'round',
offset: cycleway and tags.segregated == 'yes' ? -1 : 0 offset: cycleway and tags.segregated == 'yes' ? -1 : 0
}, },
@ -282,8 +284,10 @@ feature:
color: | color: |
{{ const.categories[category].color }} {{ const.categories[category].color }}
dashArray: | dashArray: |
{% if tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') %}
{% if tags.highway == 'steps' %}
3,3 3,3
{% elseif cycleway and tags.segregated != 'yes' %}
8,8
{% endif %} {% endif %}
lineCap: | lineCap: |
{% if tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') %}butt{% else %}round{% endif %} {% if tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') %}butt{% else %}round{% endif %}
@ -301,9 +305,9 @@ feature:
{{ const.categories.cycleway.color }} {{ const.categories.cycleway.color }}
dashArray: | dashArray: |
{% if cycleway and tags.segregated != 'yes' %} {% if cycleway and tags.segregated != 'yes' %}
3,3
8,8
{% endif %} {% endif %}
dashOffset: 3
dashOffset: 8
lineCap: | lineCap: |
{% if cycleway and tags.segregated != 'yes' %}butt{% else %}round{% endif %} {% if cycleway and tags.segregated != 'yes' %}butt{% else %}round{% endif %}
offset: | offset: |
@ -397,13 +401,13 @@ info: |
style: { style: {
width: 4, width: 4,
color: const.categories.cycleway.color, color: const.categories.cycleway.color,
dashArray: '3,3'
dashArray: '8,8'
}, },
'style:foot': { 'style:foot': {
width: 4, width: 4,
color: const.categories.footway.color, color: const.categories.footway.color,
dashArray: '3,3',
dashOffset: 3
dashArray: '8,8',
dashOffset: 8
} }
}) }}</td> }) }}</td>
<td>{{ tagTrans('highway', 'cycleway segregated=no') }}</td> <td>{{ tagTrans('highway', 'cycleway segregated=no') }}</td>

Loading…
Cancel
Save