Browse Source

railway-rails: re-design zIndex

railway-rails
parent
commit
66a9dbf177
  1. 15
      railway-rails.yaml

15
railway-rails.yaml

@ -67,7 +67,7 @@ feature:
listMarkerSymbol: line listMarkerSymbol: line
styles: |- styles: |-
{% if tags.bridge and tags.bridge != 'no' %}casing_bridge,{% endif %} {% if tags.bridge and tags.bridge != 'no' %}casing_bridge,{% endif %}
casing,casing_layer,
casing_back,casing_layer,
{% if lifecyle != 'active' %}background,{% endif %} {% if lifecyle != 'active' %}background,{% endif %}
{% if tags.railway == 'narrow_gauge' %}default,narrow {% if tags.railway == 'narrow_gauge' %}default,narrow
{% else %}default {% else %}default
@ -76,10 +76,9 @@ feature:
width: |- width: |-
{{ width }} {{ width }}
zIndex: |- zIndex: |-
{{ tags.layer|default(0) + 10 }}
{{ tags.layer|default(0) }}
color: |- color: |-
{{ color }} {{ color }}
opacity: 1 opacity: 1
lineCap: |- lineCap: |-
{{ lifecyle == 'active' ? 'round' : 'butt' }} {{ lifecyle == 'active' ? 'round' : 'butt' }}
@ -91,12 +90,12 @@ feature:
width: |- width: |-
{{ width }} {{ width }}
zIndex: |- zIndex: |-
{{ tags.layer|default(0) + 9.995 }}
{{ tags.layer|default(0) - 0.1 }}
color: white color: white
opacity: 1 opacity: 1
fill: false fill: false
style:casing:
style:casing_back:
color: '#ffffff' color: '#ffffff'
pane: casing pane: casing
width: |- width: |-
@ -105,7 +104,7 @@ feature:
style:casing_layer: style:casing_layer:
color: '#ffffff' color: '#ffffff'
zIndex: |- zIndex: |-
{{ tags.layer|default(0) + 9.99 }}
{{ tags.layer|default(0) - 0.2 }}
width: |- width: |-
{{ width + 2 }} {{ width + 2 }}
lineCap: butt lineCap: butt
@ -113,7 +112,7 @@ feature:
style:casing_bridge: style:casing_bridge:
color: '#000000' color: '#000000'
zIndex: |- zIndex: |-
{{ tags.layer|default(0) + 9.98 }}
{{ tags.layer|default(0) - 0.3 }}
width: |- width: |-
{{ width + 4 }} {{ width + 4 }}
lineCap: butt lineCap: butt
@ -121,6 +120,8 @@ feature:
style:narrow: style:narrow:
width: |- width: |-
{{ width + 2 }} {{ width + 2 }}
zIndex: |-
{{ tags.layer|default(0) }}
color: |- color: |-
{{ color }} {{ color }}
lineCap: butt lineCap: butt

Loading…
Cancel
Save