Browse Source

cycleway_types: fix popup for cycleway=* (with indication for left/right/both) and cycleway=yes

cycleway
parent
commit
0203f0a054
  1. 7
      cycleway_types.yaml

7
cycleway_types.yaml

@ -336,7 +336,7 @@ feature:
<li> <li>
{{ keyTrans('cycleway') }}: {{ tagTrans('cycleway', tags.cycleway) }} {{ keyTrans('cycleway') }}: {{ tagTrans('cycleway', tags.cycleway) }}
</li> </li>
{% elseif tags.cycleway %}
{% elseif tags.cycleway and tags.cycleway != 'yes' %}
<li> <li>
{{ keyTrans('cycleway') }}: {{ keyTrans('cycleway') }}:
<div class='warning'>Recommendation: Indicate side of way by using 'cycleway:left' and/or 'cycleway:right'.</div> <div class='warning'>Recommendation: Indicate side of way by using 'cycleway:left' and/or 'cycleway:right'.</div>
@ -358,7 +358,7 @@ feature:
</li> </li>
{% endif %} {% endif %}
{% if leftCycle %}
{% if leftCycle and attribute(tags, 'cycleway:left')|default(attribute(tags, 'cycleway:both')) %}
<li>{{ keyTrans('cycleway:left') }}: <li>{{ keyTrans('cycleway:left') }}:
{% if const.types[leftCycle].warning %} {% if const.types[leftCycle].warning %}
@ -384,7 +384,7 @@ feature:
<li>{{ keyTrans('cycleway:left') }}: {{ tagTrans('cycleway', attribute(tags, 'cycleway:left')|default(attribute(tags, 'cycleway:both'))) }}</li> <li>{{ keyTrans('cycleway:left') }}: {{ tagTrans('cycleway', attribute(tags, 'cycleway:left')|default(attribute(tags, 'cycleway:both'))) }}</li>
{% endif %} {% endif %}
{% if rightCycle %}
{% if rightCycle and attribute(tags, 'cycleway:right')|default(attribute(tags, 'cycleway:both')) %}
<li>{{ keyTrans('cycleway:right') }}: <li>{{ keyTrans('cycleway:right') }}:
{% if const.types[rightCycle].warning %} {% if const.types[rightCycle].warning %}
@ -509,6 +509,7 @@ const:
color: 'black' color: 'black'
hiddenTypes: hiddenTypes:
'no': true 'no': true
'yes': true
separate: true separate: true
sidepath: true sidepath: true
link: true link: true
Loading…
Cancel
Save