Browse Source

cycle_directions-pattern: improve support for cycleway:left and cycleway:right

name-etym
parent
commit
91170eda23
  1. 8
      cycle_directions-pattern.json

8
cycle_directions-pattern.json

@ -41,16 +41,16 @@
"style:highlight": null,
"style:left": {
"width": "0",
"pattern": "{% if tags.cycleway 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' ] %}arrowHead{% endif %}",
"pattern-offset": "0",
"pattern-repeat": "25",
"pattern-polygon": "true",
"pattern-pixelSize": "5",
"pattern-path-color": [
"{% if tags.oneway in [ 'yes', '1' ] and tags.cycleway in [ 'opposite_lane', 'opposite' ] %}",
"#00ff00",
"{% elseif tags.oneway in [ 'yes', '1' ] and tags.cycleway 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",
"{% 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' ]) %}",
"#00ff00",
"{% endif %}"
],
"pattern-path-fillOpacity": "1",

Loading…
Cancel
Save