Browse Source

cycleway_types: stack lines via tags.layer

cycleway
parent
commit
a4286e7304
  1. 18
      cycleway_types.yaml

18
cycleway_types.yaml

@ -167,6 +167,9 @@ feature:
pattern-path-fillOpacity: 1 pattern-path-fillOpacity: 1
zIndex: |-
{{ tags.layer|default(0) }}
style:footway: style:footway:
color: | color: |
{{ const.types.footway.color }} {{ const.types.footway.color }}
@ -209,6 +212,9 @@ feature:
{{ (const.types.footway.width / 2 - 1) * -1 }} {{ (const.types.footway.width / 2 - 1) * -1 }}
{% endif %} {% endif %}
zIndex: |-
{{ tags.layer|default(0) }}
style:left: style:left:
offset: -5 offset: -5
@ -242,6 +248,9 @@ feature:
pattern-path-fillOpacity: 1 pattern-path-fillOpacity: 1
zIndex: |-
{{ tags.layer|default(0) }}
style:right: style:right:
offset: 5 offset: 5
@ -275,20 +284,25 @@ feature:
pattern-path-fillOpacity: 1 pattern-path-fillOpacity: 1
zIndex: |-
{{ tags.layer|default(0) }}
style:crossing: style:crossing:
width: | width: |
{{ const.types[type].width + 4 }} {{ const.types[type].width + 4 }}
color: black color: black
lineCap: butt lineCap: butt
dashArray: "4,4" dashArray: "4,4"
zIndex: -0.1
zIndex: |-
{{ tags.layer|default(0) - 0.1 }}
style:bridge: style:bridge:
width: | width: |
{{ const.types[type].width|default(5) + 4 }} {{ const.types[type].width|default(5) + 4 }}
color: black color: black
lineCap: butt lineCap: butt
zIndex: -0.2
zIndex: |-
{{ tags.layer|default(0) - 0.2 }}
description: | description: |
{% if tags.cyclestreet == 'yes' %} {% if tags.cyclestreet == 'yes' %}

Loading…
Cancel
Save