From f14aacdc1637714c4f98af6113c07bfa29521272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 25 Jul 2024 07:35:32 +0200 Subject: [PATCH] cycleway_types: include left/right in warnings --- cycleway_types.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cycleway_types.yaml b/cycleway_types.yaml index 7ff5f3d..4543616 100644 --- a/cycleway_types.yaml +++ b/cycleway_types.yaml @@ -266,7 +266,7 @@ feature:
  • {{ keyTrans('cycleway:left') }}: {% if const.types[leftCycle].warning %} -
    {{ const.types[leftCycle].warning }}
    +
    {{ const.types[leftCycle].warning|replace({'%driving_side%': map.driving_side, '%other_driving_side%': map.driving_side == 'right' ? 'left': 'right', '%current%': 'left'}) }}
    {% elseif not const.types[leftCycle] %}
    Invalid tag cycleway:left={{ attribute(tags, 'cycleway:left') }}.
    {% endif %} @@ -290,7 +290,7 @@ feature:
  • {{ keyTrans('cycleway:right') }}: {% if const.types[rightCycle].warning %} -
    {{ const.types[rightCycle].warning }}
    +
    {{ const.types[rightCycle].warning|replace({'%driving_side%': map.driving_side, '%other_driving_side%': map.driving_side == 'right' ? 'left': 'right', '%current%': 'right'}) }}
    {% elseif not const.types[rightCycle] %}
    Invalid tag cycleway:right={{ attribute(tags, 'cycleway:right') }}.
    Unknown
    @@ -358,13 +358,13 @@ const: color: '#ff7f00' opposite: color: '#ff0000' - warning: 'Deprecated tag! Use oneway:bicycle=no and cycleway=lane, cycleway:oneway=-1 instead.' + warning: 'Deprecated tag! Use oneway:bicycle=no and cycleway:%other_driving_side%=lane, cycleway:%other_driving_side%:oneway=-1 instead.' opposite_lane: color: '#ff0000' - warning: 'Deprecated tag! Use oneway:bicycle=no and cycleway=lane, cycleway:oneway=-1 instead.' + warning: 'Deprecated tag! Use oneway:bicycle=no and cycleway:%other_driving_side%=lane, cycleway:%other_driving_side%:oneway=-1 instead.' opposite_share_busway: color: '#ff0000' - warning: 'Deprecated tag! Use oneway:bicycle=no and cycleway=share_busway, cycleway:oneway=-1 instead.' + warning: 'Deprecated tag! Use oneway:bicycle=no and cycleway:%other_driving_side%=share_busway, cycleway:%other_driving_side%:oneway=-1 instead.' opposite_track: color: '#ff0000' - warning: 'Deprecated tag! Use oneway:bicycle=no and cycleway=track, cycleway:oneway=-1 instead.' + warning: 'Deprecated tag! Use oneway:bicycle=no and cycleway:%other_driving_side%=track, cycleway:%other_driving_side%:oneway=-1 instead.'