Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.7 KiB

  1. name:
  2. de: Radwegrichtungen
  3. en: Cycleway Directions
  4. query:
  5. 14: |-
  6. (
  7. way[highway=cycleway];
  8. way[cycleway];
  9. way["cycleway:left"];
  10. way["cycleway:right"];
  11. way[highway][oneway];
  12. way['oneway:bicycle'];
  13. )
  14. feature:
  15. pre: |-
  16. {% set oneway = 0 %}
  17. {% if tags.oneway in [ 'yes', '1' ] %}{% set oneway = 1 %}
  18. {% elseif tags.oneway in [ '-1' ] %}{% set oneway = -1 %}
  19. {% endif %}
  20. {% set driving_side = 'right' %}
  21. markerSymbol: null
  22. listMarkerSymbol: line
  23. styles: '{% if oneway != 0 %}default,{% endif %}left,right'
  24. style:
  25. width: 0
  26. pattern: arrowHead
  27. pattern-offset: 17
  28. pattern-repeat: 25
  29. pattern-polygon: true
  30. pattern-pixelSize: |-
  31. {% if tags.highway == "cycleway" %}7{% else %}9{% endif %}
  32. pattern-path-color: |-
  33. {% if tags.highway == "cycleway" %}#007f00{% else %}#000000{% endif %}
  34. pattern-path-width: 1
  35. pattern-path-fillOpacity: 1
  36. pattern-angleCorrection: |-
  37. {% if oneway == -1 %}180{% else %}0{% endif %}
  38. style:highlight: null
  39. style:left:
  40. width: 0
  41. pattern: |-
  42. {% 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 %}
  43. pattern-offset: 0
  44. pattern-repeat: 25
  45. pattern-polygon: true
  46. pattern-pixelSize: 7
  47. pattern-path-width: 1
  48. pattern-path-color: |-
  49. {% 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' ]) %}
  50. #00af00
  51. {% 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') %}
  52. #00ff00
  53. {% endif %}
  54. pattern-path-fillOpacity: 1
  55. pattern-angleCorrection: |-
  56. {% if oneway == -1 %}0{% else %}180{% endif %}
  57. info: |-
  58. <table>
  59. <tr>
  60. <td>{{ markerLine(evaluate({ "oneway": "yes", "highway": "cycleway" }))|raw }}</td>
  61. <td>{{ tagTrans('highway', 'cycleway') }}</td>
  62. </tr>
  63. <tr>
  64. <td>{{ markerLine(evaluate({ "oneway": "yes", "cycleway": "track" }))|raw }}</td>
  65. <td>{{ tagTrans('cycleway', 'track') }}</td>
  66. </tr>
  67. <tr>
  68. <td>{{ markerLine(evaluate({ "oneway": "yes", "cycleway": "lane" }))|raw }}</td>
  69. <td>{{ tagTrans('cycleway', 'lane') }}</td>
  70. </tr>
  71. </table>