Browse Source

cycleway_types: unify highway=cycleway, highway=footway and highway=*

master
parent
commit
bbcdad300a
  1. 16
      cycleway_types.yaml

16
cycleway_types.yaml

@ -15,7 +15,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 +195,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 +232,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: |-
@ -499,14 +499,12 @@ const:
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