From d53ddfb0071f8e4a8b354f115c06124a0ec78c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 12 May 2023 18:19:00 +0200 Subject: [PATCH] cycle_route_infrastructure: improvements --- cycle_route_infrastructure.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cycle_route_infrastructure.yaml b/cycle_route_infrastructure.yaml index 4eede6b..90e9b42 100644 --- a/cycle_route_infrastructure.yaml +++ b/cycle_route_infrastructure.yaml @@ -6,7 +6,7 @@ feature: styles: '' memberFeature: exclude: | - {% if type == 'relation' %}true{% endif %} + {% if type == 'relation' or type == 'node' %}true{% endif %} pre: | {% set type = 'other' %} {% set lane_left = null %} @@ -20,7 +20,7 @@ memberFeature: {% set segregated = tags.segregated != 'no' %} {% elseif tags.highway in ['living_street', 'pedestrian'] %} {% set type = tags.highway %} - {% elseif tags.highway in ['residential', 'service'] %} + {% elseif tags.highway in ['residential', 'service', 'unclassified'] or tags.max_speed > 30 %} {% set type = 'mixed_low' %} {% if tags.oneway in ['yes', '1'] %} @@ -74,6 +74,10 @@ memberFeature: {{ const.lane[lane_right]|default({})|json_encode|raw }} style:lane_left: | {{ const.lane[lane_left]|default({})|merge({ offset: const.lane[lane_left].offset * -1, 'pattern-lineOffset': const.lane[lane_left]['pattern-lineOffset'] * -1 })|json_encode|raw }} + style:segregated: + width: | + {{ const.type[type].width }} + color: '#00ffaf' body: | {{ type }}, right: {{ lane_right }}, left: {{ lane_left }}
default{{ lane_left ? ',lane_left' : '' }}{{ lane_right ? ',lane_right' : '' }}