Browse Source

railway-rails: fix typo

railway-rails
parent
commit
bbc7c872a2
  1. 26
      railway-rails.yaml

26
railway-rails.yaml

@ -11,9 +11,9 @@ query:
feature: feature:
pre: |- pre: |-
{% set type = tags.railway %} {% set type = tags.railway %}
{% set lifecyle = 'active' %}
{% set lifecycle = 'active' %}
{% if tags.railway in ['abandoned', 'construction', 'proposed', 'disused', 'razed'] %} {% if tags.railway in ['abandoned', 'construction', 'proposed', 'disused', 'razed'] %}
{% set lifecyle = tags.railway %}
{% set lifecycle = tags.railway %}
{% set type = attribute(tags, tags.railway)|default(attribute(tags, tags.railway ~ ':railway'))|default('unknown') %} {% set type = attribute(tags, tags.railway)|default(attribute(tags, tags.railway ~ ':railway'))|default('unknown') %}
{% endif %} {% endif %}
@ -41,8 +41,8 @@ feature:
{% if attribute(tags, 'bridge:name') %}- {{ localizedTag(tags, 'bridge:name') }}{% endif %} {% if attribute(tags, 'bridge:name') %}- {{ localizedTag(tags, 'bridge:name') }}{% endif %}
description: |- description: |-
{{ tagTrans('railway', type) }} {{ tagTrans('railway', type) }}
{% if lifecyle != 'active' %}
({{ tagTrans('railway', lifecyle) }})
{% if lifecycle != 'active' %}
({{ tagTrans('railway', lifecycle) }})
{%- endif -%} {%- endif -%}
{%- if tags.usage %} {%- if tags.usage %}
, {{ tagTrans('railway=rail usage', tags.usage) }} , {{ tagTrans('railway=rail usage', tags.usage) }}
@ -68,7 +68,7 @@ feature:
styles: |- styles: |-
{% if tags.bridge and tags.bridge != 'no' %}casing_bridge,{% endif %} {% if tags.bridge and tags.bridge != 'no' %}casing_bridge,{% endif %}
casing_back,casing_layer, casing_back,casing_layer,
{% if lifecyle != 'active' %}background,{% endif %}
{% if lifecycle != 'active' %}background,{% endif %}
{% if tags.railway == 'narrow_gauge' %}default,narrow {% if tags.railway == 'narrow_gauge' %}default,narrow
{% else %}default {% else %}default
{% endif %} {% endif %}
@ -81,9 +81,9 @@ feature:
{{ color }} {{ color }}
opacity: 1 opacity: 1
lineCap: |- lineCap: |-
{{ lifecyle == 'active' ? 'round' : 'butt' }}
{{ lifecycle == 'active' ? 'round' : 'butt' }}
dashArray: |- dashArray: |-
{{ const.lifecyle[lifecyle].dashArray }}
{{ const.lifecycle[lifecycle].dashArray }}
fill: false fill: false
style:background: style:background:
@ -161,7 +161,7 @@ info: |-
<td>{{ keyTrans('bridge') }}</td> <td>{{ keyTrans('bridge') }}</td>
</tr> </tr>
{% for k, v in const.lifecyle %}
{% for k, v in const.lifecycle %}
{% if not v.hideInfo %} {% if not v.hideInfo %}
<tr> <tr>
<td>{{ markerLine(evaluate({ 'railway': k, (k): 'rail'}))|raw }}</td> <td>{{ markerLine(evaluate({ 'railway': k, (k): 'rail'}))|raw }}</td>
@ -185,15 +185,15 @@ filter:
<option value="{{ k }}" query="(way[railway={{ k }}];way[~'^(railway:|)(construction|proposed|abandoned|disused|razed)$'~'^({{ k }})$'];)">{{ tagTrans('railway', k) }}</option> <option value="{{ k }}" query="(way[railway={{ k }}];way[~'^(railway:|)(construction|proposed|abandoned|disused|razed)$'~'^({{ k }})$'];)">{{ tagTrans('railway', k) }}</option>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
lifecyle:
lifecycle:
name: |- name: |-
{{ repoTrans('lifecyle') }}
{{ repoTrans('lifecycle') }}
show_default: true show_default: true
type: select type: select
sort: false sort: false
values: |- values: |-
<option value="active" query="way[railway!~'^(construction|proposed|abandoned|disused|razed)$']">{{ repoTrans('lifecyle:active') }}</option>
{% for k, v in const.lifecyle %}
<option value="active" query="way[railway!~'^(construction|proposed|abandoned|disused|razed)$']">{{ repoTrans('lifecycle:active') }}</option>
{% for k, v in const.lifecycle %}
{% if k != 'active' %} {% if k != 'active' %}
<option value="{{ k }}" query="way[railway={{ k }}]">{{ tagTrans('railway', k) }}</option> <option value="{{ k }}" query="way[railway={{ k }}]">{{ tagTrans('railway', k) }}</option>
{% endif %} {% endif %}
@ -221,7 +221,7 @@ const:
unknown: unknown:
color: '#ff0000' color: '#ff0000'
title: 'unknown' title: 'unknown'
lifecyle:
lifecycle:
active: active:
dashArray: '' dashArray: ''
hideInfo: true hideInfo: true

Loading…
Cancel
Save