Browse Source

cycle_directions-pattern: support 'oneway:bicycle'='no'

master
parent
commit
e668ceaf08
  1. 5
      cycle_directions-pattern.json

5
cycle_directions-pattern.json

@ -12,6 +12,7 @@
"way[\"cycleway:left\"];", "way[\"cycleway:left\"];",
"way[\"cycleway:right\"];", "way[\"cycleway:right\"];",
"way[highway][oneway];", "way[highway][oneway];",
"way['oneway:bicycle'];",
")" ")"
] ]
}, },
@ -42,7 +43,7 @@
"style:highlight": null, "style:highlight": null,
"style:left": { "style:left": {
"width": "0", "width": "0",
"pattern": "{% if tags.cycleway in [ 'opposite', 'opposite_lane', 'opposite_track' ] or attribute(tags, 'cycleway:left') in [ 'opposite', 'opposite_lane', 'opposite_track' ] or attribute(tags, 'cycleway:right') in [ 'opposite', 'opposite_lane', 'opposite_track' ] %}arrowHead{% endif %}",
"pattern": "{% if tags.cycleway in [ 'opposite', 'opposite_lane', 'opposite_track' ] or attribute(tags, 'cycleway:left') in [ 'opposite', 'opposite_lane', 'opposite_track' ] or attribute(tags, 'cycleway:right') in [ 'opposite', 'opposite_lane', 'opposite_track' ] or attribute(tags, 'oneway:bicycle') == 'no' %}arrowHead{% endif %}",
"pattern-offset": "0", "pattern-offset": "0",
"pattern-repeat": "25", "pattern-repeat": "25",
"pattern-polygon": "true", "pattern-polygon": "true",
@ -51,7 +52,7 @@
"pattern-path-color": [ "pattern-path-color": [
"{% if tags.oneway in [ 'yes', '1' ] and (tags.cycleway in [ 'opposite_track' ] or attribute(tags, 'cycleway:left') in [ 'opposite_track' ] or attribute(tags, 'cycleway:right') in [ 'opposite_track' ]) %}", "{% if tags.oneway in [ 'yes', '1' ] and (tags.cycleway in [ 'opposite_track' ] or attribute(tags, 'cycleway:left') in [ 'opposite_track' ] or attribute(tags, 'cycleway:right') in [ 'opposite_track' ]) %}",
"#00af00", "#00af00",
"{% elseif tags.oneway in [ 'yes', '1' ] and (tags.cycleway in [ 'opposite_lane', 'opposite' ] or attribute(tags, 'cycleway:left') in [ 'opposite', 'opposite_lane' ] or attribute(tags, 'cycleway:right') in [ 'opposite', 'opposite_lane' ]) %}",
"{% elseif tags.oneway in [ 'yes', '1' ] and (tags.cycleway in [ 'opposite_lane', 'opposite' ] or attribute(tags, 'cycleway:left') in [ 'opposite', 'opposite_lane' ] or attribute(tags, 'cycleway:right') in [ 'opposite', 'opposite_lane' or attribute(tags, 'oneway:bicycle') == 'no' ]) %}",
"#00ff00", "#00ff00",
"{% endif %}" "{% endif %}"
], ],

Loading…
Cancel
Save