Browse Source

cycleway_types: label info

cycleway
parent
commit
e74306d5fa
  1. 11
      cycleway_types.yaml

11
cycleway_types.yaml

@ -446,7 +446,12 @@ info: |
{{ markerLine({ width: v.width|default(4), color: v.color }) }} {{ markerLine({ width: v.width|default(4), color: v.color }) }}
</td> </td>
<td> <td>
{{ k }}
{% set label = v.label|default(k|split('=') > 1 ? k : ('cycleway=' ~ k)) %}
{% if label|split('=') > 1 %}
{{ tagTrans(label|split('=')[0], label|split('=')[1]) }}
{% else %}
{{ keyTrans(label) }}
{% endif %}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -458,7 +463,7 @@ info: |
{{ markerLine(evaluate({ highway: 'cycleway', cycleway: k })) }} {{ markerLine(evaluate({ highway: 'cycleway', cycleway: k })) }}
</td> </td>
<td> <td>
{{ k }}
{{ tagTrans('cycleway', k) }}
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
@ -483,9 +488,11 @@ const:
cyclestreet: cyclestreet:
color: '#006f3f' color: '#006f3f'
width: 8 width: 8
label: cyclestreet
bicycle_road: bicycle_road:
color: '#006f4f' color: '#006f4f'
width: 8 width: 8
label: bicycle_road
lane: lane:
color: '#00df3f' color: '#00df3f'
track: track:

Loading…
Cancel
Save