2 Commits

  1. 20
      cycleway_types.yaml

20
cycleway_types.yaml

@ -5,6 +5,7 @@ query:
way[bicycle_road=yes];
way[highway=path][bicycle][bicycle!=no];
way[highway=living_street];
way[highway=pedestrian][bicycle][bicycle!=no];
way["cycleway"]["cycleway"!~"(no|separate)"];
way["cycleway:left"]["cycleway:left"!~"(no|separate)"];
way["cycleway:right"]["cycleway:right"!~"(no|separate)"];
@ -15,7 +16,7 @@ feature:
{% set type = tags.highway %}
{% if tags.highway == 'path' and tags.bicycle and tags.bicycle != 'no' %}
{% set type = 'cycleway' %}
{% set type = 'highway=cycleway' %}
{% endif %}
{% if tags.cyclestreet == 'yes' %}
@ -195,13 +196,13 @@ feature:
style:footway:
color: |
{{ const.types.footway.color }}
{{ const.types['highway=footway'].color }}
width: |
{% if tags.segregated == 'yes' %}
{{ const.types.footway.width / 2 }}
{{ const.types['highway=footway'].width / 2 }}
{% else %}
{{ const.types.footway.width }}
{{ const.types['highway=footway'].width }}
{% endif %}
dashArray: |
@ -232,7 +233,7 @@ feature:
offset: |
{% if tags.segregated == 'yes' %}
{{ (const.types.footway.width / 2 - 1) * -1 }}
{{ (const.types['highway=footway'].width / 2 - 1) * -1 }}
{% endif %}
zIndex: |-
@ -496,17 +497,18 @@ const:
color: '#006f4f'
width: 8
label: bicycle_road
highway=pedestrian:
color: '#ffff00'
width: 8
highway=living_street:
color: '#ff9f00'
width: 8
cycleway:
highway=cycleway:
color: '#009f00'
width: 4
label: highway=cycleway
footway:
highway=footway:
color: '#ff9f00'
width: 4
label: highway=footway
lane:
color: '#00df3f'
track:

Loading…
Cancel
Save