|
@ -6,7 +6,7 @@ feature: |
|
|
styles: '' |
|
|
styles: '' |
|
|
memberFeature: |
|
|
memberFeature: |
|
|
exclude: | |
|
|
exclude: | |
|
|
{% if type == 'relation' %}true{% endif %} |
|
|
|
|
|
|
|
|
{% if type == 'relation' or type == 'node' %}true{% endif %} |
|
|
pre: | |
|
|
pre: | |
|
|
{% set type = 'other' %} |
|
|
{% set type = 'other' %} |
|
|
{% set lane_left = null %} |
|
|
{% set lane_left = null %} |
|
@ -20,7 +20,7 @@ memberFeature: |
|
|
{% set segregated = tags.segregated != 'no' %} |
|
|
{% set segregated = tags.segregated != 'no' %} |
|
|
{% elseif tags.highway in ['living_street', 'pedestrian'] %} |
|
|
{% elseif tags.highway in ['living_street', 'pedestrian'] %} |
|
|
{% set type = tags.highway %} |
|
|
{% 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' %} |
|
|
{% set type = 'mixed_low' %} |
|
|
|
|
|
|
|
|
{% if tags.oneway in ['yes', '1'] %} |
|
|
{% if tags.oneway in ['yes', '1'] %} |
|
@ -74,6 +74,10 @@ memberFeature: |
|
|
{{ const.lane[lane_right]|default({})|json_encode|raw }} |
|
|
{{ const.lane[lane_right]|default({})|json_encode|raw }} |
|
|
style:lane_left: | |
|
|
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 }} |
|
|
{{ 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: | |
|
|
body: | |
|
|
{{ type }}, right: {{ lane_right }}, left: {{ lane_left }}<br> |
|
|
{{ type }}, right: {{ lane_right }}, left: {{ lane_left }}<br> |
|
|
default{{ lane_left ? ',lane_left' : '' }}{{ lane_right ? ',lane_right' : '' }}<br> |
|
|
default{{ lane_left ? ',lane_left' : '' }}{{ lane_right ? ',lane_right' : '' }}<br> |
|
|