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.

106 lines
2.1 KiB

  1. query:
  2. (
  3. way[highway=cycleway];
  4. way[cyclestreet=yes];
  5. way[bicycle_road=yes];
  6. )
  7. feature:
  8. pre: |
  9. {% set type = tags.highway %}
  10. {% if tags.cyclestreet == 'yes' %}
  11. {% set type = 'cyclestreet' %}
  12. {% elseif tags.bicycle_road in ['yes', 'designated'] %}
  13. {% set type = 'bicycle_road' %}
  14. {% endif %}
  15. styles: |
  16. {% if tags.segregated %}
  17. footway,
  18. {% endif %}
  19. default
  20. style:
  21. width: |
  22. {% if tags.segregated == 'yes' %}
  23. {{ const.types[type].width / 2 }}
  24. {% else %}
  25. {{ const.types[type].width }}
  26. {% endif %}
  27. dashArray: |
  28. {% if tags.segregated == 'no' %}
  29. 5,5
  30. {% endif %}
  31. lineCap: |
  32. {% if tags.segregated == 'no' %}
  33. butt
  34. {% else %}
  35. round
  36. {% endif %}
  37. color: |
  38. {{ const.types[type].color }}
  39. offset: |
  40. {% if tags.segregated == 'yes' %}
  41. {{ const.types[type].width / 2 - 1 }}
  42. {% endif %}
  43. style:footway:
  44. color: |
  45. {{ const.types.footway.color }}
  46. width: |
  47. {% if tags.segregated == 'yes' %}
  48. {{ const.types.footway.width / 2 }}
  49. {% else %}
  50. {{ const.types.footway.width }}
  51. {% endif %}
  52. dashArray: |
  53. {% if tags.segregated == 'no' %}
  54. 5,5
  55. {% endif %}
  56. dashOffset: 5
  57. lineCap: |
  58. {% if tags.segregated == 'no' %}
  59. butt
  60. {% else %}
  61. round
  62. {% endif %}
  63. offset: |
  64. {% if tags.segregated == 'yes' %}
  65. {{ (const.types.footway.width / 2 - 1) * -1 }}
  66. {% endif %}
  67. description: |
  68. {% if tags.cyclestreet == 'yes' %}
  69. {{ keyTrans('cyclestreet') }}
  70. {% elseif tags.bicycle_road in ['yes', 'designated'] %}
  71. {{ keyTrans('bicycle_road') }}
  72. {% elseif tags.segregated %}
  73. {{ tagTrans('highway', 'cycleway segregated=' ~ tags.segregated) }}
  74. {% elseif tags.highway %}
  75. {{ tagTrans('highway', tags.highway) }}
  76. {% endif %}
  77. markerSymbol: ''
  78. const:
  79. types:
  80. cycleway:
  81. color: '#009f00'
  82. width: 4
  83. footway:
  84. color: '#ff9f00'
  85. width: 4
  86. cyclestreet:
  87. color: '#006f3f'
  88. width: 8
  89. bicycle_road:
  90. color: '#006f4f'
  91. width: 8