|
@ -29,6 +29,7 @@ feature: |
|
|
{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator')) }} |
|
|
{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator')) }} |
|
|
|
|
|
|
|
|
{% if attribute(tags, 'tunnel:name') %}- {{ localizedTag(tags, 'tunnel:name') }}{% endif %} |
|
|
{% if attribute(tags, 'tunnel:name') %}- {{ localizedTag(tags, 'tunnel:name') }}{% endif %} |
|
|
|
|
|
{% if attribute(tags, 'bridge:name') %}- {{ localizedTag(tags, 'bridge:name') }}{% endif %} |
|
|
description: |- |
|
|
description: |- |
|
|
{{ tagTrans('railway', tags.railway) -}} |
|
|
{{ tagTrans('railway', tags.railway) -}} |
|
|
{%- if tags.usage %} |
|
|
{%- if tags.usage %} |
|
@ -79,6 +80,7 @@ feature: |
|
|
{% else %}5 |
|
|
{% else %}5 |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
styles: |- |
|
|
styles: |- |
|
|
|
|
|
{% if tags.bridge and tags.bridge != 'no' %}casing_bridge,{% endif %} |
|
|
{% if const.color[tags.railway] %}casing,casing_layer,{% endif %} |
|
|
{% if const.color[tags.railway] %}casing,casing_layer,{% endif %} |
|
|
{% if tags.railway == 'narrow_gauge' %}default,narrow |
|
|
{% if tags.railway == 'narrow_gauge' %}default,narrow |
|
|
{% else %}default |
|
|
{% else %}default |
|
@ -171,6 +173,26 @@ feature: |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
lineCap: butt |
|
|
lineCap: butt |
|
|
|
|
|
|
|
|
|
|
|
style:casing_bridge: |
|
|
|
|
|
color: '#000000' |
|
|
|
|
|
zIndex: |- |
|
|
|
|
|
{{ tags.layer|default(0) + 9.98 }} |
|
|
|
|
|
width: |- |
|
|
|
|
|
{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %} |
|
|
|
|
|
4 |
|
|
|
|
|
{% else %} |
|
|
|
|
|
{% if tags.railway == 'rail' %} |
|
|
|
|
|
{% if tags.usage == 'main' or tags.usage == 'branch' %} |
|
|
|
|
|
7 |
|
|
|
|
|
{% else %} |
|
|
|
|
|
6 |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% else %} |
|
|
|
|
|
5 |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
lineCap: butt |
|
|
|
|
|
|
|
|
style:narrow: |
|
|
style:narrow: |
|
|
width: '{% if tags.service == ''yard'' or tags.service == ''siding'' or tags.service == ''spur'' or tags.service == ''crossover'' %}5{% else %}{% if tags.railway == ''rail'' %}{% if tags.usage == ''main'' or tags.usage == ''branch'' %}7{% else %}6{% endif %}{% elseif tags.railway == ''platform'' %}5{% else %}6{% endif %}{% endif %}' |
|
|
width: '{% if tags.service == ''yard'' or tags.service == ''siding'' or tags.service == ''spur'' or tags.service == ''crossover'' %}5{% else %}{% if tags.railway == ''rail'' %}{% if tags.usage == ''main'' or tags.usage == ''branch'' %}7{% else %}6{% endif %}{% elseif tags.railway == ''platform'' %}5{% else %}6{% endif %}{% endif %}' |
|
|
color: '{% if tags.railway == ''rail'' or tags.railway == ''narrow_gauge'' or tags.railway == ''disused'' %}{% if tags.usage == ''main'' %}#ff8100{% elseif tags.usage == ''branch'' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == ''subway'' %}#0000ff{% elseif tags.railway == ''tram'' %}#ff00ff{% elseif tags.railway == ''light_rail'' %}#00BD14{% elseif tags.railway == ''platform'' %}#3f3f3f{% else %}#000000{% endif %}' |
|
|
color: '{% if tags.railway == ''rail'' or tags.railway == ''narrow_gauge'' or tags.railway == ''disused'' %}{% if tags.usage == ''main'' %}#ff8100{% elseif tags.usage == ''branch'' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == ''subway'' %}#0000ff{% elseif tags.railway == ''tram'' %}#ff00ff{% elseif tags.railway == ''light_rail'' %}#00BD14{% elseif tags.railway == ''platform'' %}#3f3f3f{% else %}#000000{% endif %}' |
|
|