Browse Source

cycle_infrastructure: re-design colors; add bicycle_road

cycle_infrastructure
parent
commit
746cda8105
  1. 33
      cycle_infrastructure.json

33
cycle_infrastructure.json

@ -21,6 +21,7 @@
"{% set backward = false %}", "{% set backward = false %}",
"{% set cycleway = tags.cycleway|split(';') %}", "{% set cycleway = tags.cycleway|split(';') %}",
"{% set road_type = const[tags.highway] ? tags.highway : 'shared_lane' %}", "{% set road_type = const[tags.highway] ? tags.highway : 'shared_lane' %}",
"{% if tags.bicycle_road and tags.bicycle_road != 'no' %}{% set road_type = 'bicycle_road' %}{% endif %}",
"{% set oneway = attribute(tags, 'oneway:bicycle')|default(tags.oneway) %}", "{% set oneway = attribute(tags, 'oneway:bicycle')|default(tags.oneway) %}",
"{% if tags.highway == 'path' and tags.bicycle == 'designated' %}{% set road_type = 'cycleway' %}{% endif %}", "{% if tags.highway == 'path' and tags.bicycle == 'designated' %}{% set road_type = 'cycleway' %}{% endif %}",
"{% if oneway in ['yes', '1'] %}{% set forward = road_type %}{% elseif oneway in ['-1'] %}{% set backward = road_type %}{% else %}{% set forward = road_type %}{% set backward = road_type %}{% endif %}", "{% if oneway in ['yes', '1'] %}{% set forward = road_type %}{% elseif oneway in ['-1'] %}{% set backward = road_type %}{% else %}{% set forward = road_type %}{% set backward = road_type %}{% endif %}",
@ -101,39 +102,43 @@
], ],
"const": { "const": {
"cycleway": { "cycleway": {
"width": "3",
"color": "#005f00"
"width": "2",
"color": "#0000ff"
}, },
"track": { "track": {
"width": "3",
"color": "#005f00",
"width": "4",
"color": "#0000ff",
"info_hide": true "info_hide": true
}, },
"lane": { "lane": {
"width": "3",
"color": "#00af00"
"width": "2",
"color": "#7f0000"
}, },
"share_busway": { "share_busway": {
"width": "3",
"color": "#5f0000",
"width": "2",
"color": "#7f007f",
"trans_tag": "cycleway" "trans_tag": "cycleway"
}, },
"footway": { "footway": {
"width": "3",
"color": "#005faf"
"width": "2",
"color": "#00af00"
}, },
"path": { "path": {
"width": "3",
"color": "#005faf",
"width": "2",
"color": "#00af00",
"info_hide": true "info_hide": true
}, },
"pedestrian": { "pedestrian": {
"width": "4", "width": "4",
"color": "#00afaf"
"color": "#5faf00"
}, },
"living_street": { "living_street": {
"width": "4", "width": "4",
"color": "#005f5f"
"color": "#00afff"
},
"bicycle_road": {
"width": "4",
"color": "#003fff"
}, },
"shared_lane": { "shared_lane": {
"width": "4", "width": "4",

Loading…
Cancel
Save