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.

83 lines
1.4 KiB

  1. query:
  2. (
  3. way[highway=cycleway];
  4. )
  5. feature:
  6. styles: |
  7. {% if tags.segregated %}
  8. footway,
  9. {% endif %}
  10. default
  11. style:
  12. width: |
  13. {% if tags.segregated %}
  14. {{ tags.segregated == 'yes' ? 2 : 4 %}
  15. {% else %}
  16. 4
  17. {% endif %}
  18. dashArray: |
  19. {% if tags.segregated == 'no' %}
  20. 5,5
  21. {% endif %}
  22. lineCap: |
  23. {% if tags.segregated == 'no' %}
  24. butt
  25. {% else %}
  26. round
  27. {% endif %}
  28. color: |
  29. {{ const.types.cycleway.color }}
  30. offset: |
  31. {% if tags.segregated == 'yes' %}
  32. 1.5
  33. {% endif %}
  34. style:footway:
  35. color: |
  36. {{ const.types.footway.color }}
  37. width: |
  38. {% if tags.segregated %}
  39. {{ tags.segregated == 'yes' ? 2 : 4 %}
  40. {% else %}
  41. 4
  42. {% endif %}
  43. dashArray: |
  44. {% if tags.segregated == 'no' %}
  45. 5,5
  46. {% endif %}
  47. dashOffset: 5
  48. lineCap: |
  49. {% if tags.segregated == 'no' %}
  50. butt
  51. {% else %}
  52. round
  53. {% endif %}
  54. offset: |
  55. {% if tags.segregated == 'yes' %}
  56. -1.5
  57. {% endif %}
  58. description: |
  59. {% if tags.segregated %}
  60. {{ tagTrans('highway', 'cycleway segregated=' ~ tags.segregated) }}
  61. {% elseif tags.highway %}
  62. {{ tagTrans('highway', tags.highway) }}
  63. {% endif %}
  64. markerSymbol: ''
  65. const:
  66. types:
  67. cycleway:
  68. color: '#007f00'
  69. footway:
  70. color: '#ff7f00'