2 Commits

  1. 20
      cycleway_types.yaml

20
cycleway_types.yaml

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

Loading…
Cancel
Save