Browse Source

cycle_route_infrastructure: improvements

master
Stephan Bösch-Plepelits 10 months ago
parent
commit
d53ddfb007
  1. 8
      cycle_route_infrastructure.yaml

8
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 }}<br>
default{{ lane_left ? ',lane_left' : '' }}{{ lane_right ? ',lane_right' : '' }}<br>

Loading…
Cancel
Save