Browse Source

cycleway_types: improve bridge rendering

cycleway
parent
commit
ba35dc1d73
  1. 14
      cycleway_types.yaml

14
cycleway_types.yaml

@ -82,7 +82,7 @@ feature:
styles: | styles: |
{% if tags.bridge and tags.bridge != 'no' %} {% if tags.bridge and tags.bridge != 'no' %}
bridge,
bridge_outer,bridge_inner,
{% endif %} {% endif %}
{% if const.otherInfrastructure[tags.cycleway|default(tags.path)] %} {% if const.otherInfrastructure[tags.cycleway|default(tags.path)] %}
@ -303,11 +303,19 @@ feature:
zIndex: |- zIndex: |-
{{ tags.layer|default(0) - 0.1 }} {{ tags.layer|default(0) - 0.1 }}
style:bridge:
style:bridge_outer:
width: | width: |
{{ const.types[type].width|default(5) + 4 }}
{{ const.types[type].width|default(5) + 8 }}
color: black color: black
lineCap: butt lineCap: butt
zIndex: |-
{{ tags.layer|default(0) - 0.21 }}
style:bridge_inner:
width: |
{{ const.types[type].width|default(5) + 4 }}
color: white
lineCap: butt
zIndex: |- zIndex: |-
{{ tags.layer|default(0) - 0.2 }} {{ tags.layer|default(0) - 0.2 }}

Loading…
Cancel
Save