From 0203f0a0547768f4e1e80768458b717d41f72722 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sun, 1 Dec 2024 10:22:38 +0100
Subject: [PATCH] cycleway_types: fix popup for cycleway=* (with indication for
 left/right/both)  and cycleway=yes

---
 cycleway_types.yaml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/cycleway_types.yaml b/cycleway_types.yaml
index cc9d694..26e2fd4 100644
--- a/cycleway_types.yaml
+++ b/cycleway_types.yaml
@@ -336,7 +336,7 @@ feature:
     <li>
       {{ keyTrans('cycleway') }}: {{ tagTrans('cycleway', tags.cycleway) }}
     </li>
-    {% elseif tags.cycleway %}
+    {% elseif tags.cycleway and tags.cycleway != 'yes' %}
     <li>
       {{ keyTrans('cycleway') }}:
       <div class='warning'>Recommendation: Indicate side of way by using 'cycleway:left' and/or 'cycleway:right'.</div>
@@ -358,7 +358,7 @@ feature:
     </li>
     {% endif %}
 
-    {% if leftCycle %}
+    {% if leftCycle and attribute(tags, 'cycleway:left')|default(attribute(tags, 'cycleway:both')) %}
     <li>{{ keyTrans('cycleway:left') }}:
 
     {% if const.types[leftCycle].warning %}
@@ -384,7 +384,7 @@ feature:
     <li>{{ keyTrans('cycleway:left') }}: {{ tagTrans('cycleway', attribute(tags, 'cycleway:left')|default(attribute(tags, 'cycleway:both'))) }}</li>
     {% endif %}
 
-    {% if rightCycle %}
+    {% if rightCycle and attribute(tags, 'cycleway:right')|default(attribute(tags, 'cycleway:both')) %}
     <li>{{ keyTrans('cycleway:right') }}:
 
     {% if const.types[rightCycle].warning %}
@@ -509,6 +509,7 @@ const:
       color: 'black'
   hiddenTypes:
     'no': true
+    'yes': true
     separate: true
     sidepath: true
     link: true