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.

76 lines
2.7 KiB

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