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.

96 lines
2.8 KiB

  1. query:
  2. 10: |
  3. (way["parking:left"];way["parking:right"];way["parking:both"];)
  4. feature:
  5. pre: |
  6. {% set leftType = attribute(tags, 'parking:left')|default(attribute(tags, 'parking:both'))|default('unknown') %}
  7. {% set rightType = attribute(tags, 'parking:right')|default(attribute(tags, 'parking:both'))|default('unknown') %}
  8. {% set leftOrientation = attribute(tags, 'parking:left:orientation')|default(attribute(tags, 'parking:both:orientation'))|default('unknown') %}
  9. {% set rightOrientation = attribute(tags, 'parking:right:orientation')|default(attribute(tags, 'parking:both:orientation'))|default('unknown') %}
  10. body: |
  11. lt ={{ leftType }}=<br>
  12. lo ={{ leftOrientation }}=
  13. {{ const.orientation[leftOrientation].dashArray }}
  14. <br>
  15. rt ={{ rightType }}=<br>
  16. ro ={{ rightOrientation }}=<br>
  17. default,leftType,rightType{% if leftType not in ['no', 'separate'] %},leftOrientation{% endif %}{% if rightType not in ['no', 'separate'] %},rightOrientation{% endif %}
  18. markerSymbol: ''
  19. description: |
  20. Left: {{ leftType }}, Right: {{ rightType }}
  21. styles: |
  22. default
  23. ,leftType
  24. ,rightType
  25. {% if leftType not in ['no', 'separate'] %}
  26. ,leftOrientation
  27. {% endif %}
  28. {% if rightType not in ['no', 'separate'] %}
  29. ,rightOrientation
  30. {% endif %}
  31. style:
  32. color: '#7f7f7f'
  33. style:leftType:
  34. color: red
  35. offset: |
  36. {{ 0 - (const.orientation[leftOrientation].width + const.type[leftType].width / 2 + 6) }}
  37. lineCap: butt
  38. width: |
  39. {{ const.type[leftType].width }}
  40. dashArray: |
  41. {{ const.type[leftType].dashArray }}
  42. style:leftOrientation:
  43. color: red
  44. offset: |
  45. {{ 0 - (const.orientation[leftOrientation].width / 2 + 4) }}
  46. lineCap: butt
  47. width: |
  48. {{ const.orientation[leftOrientation].width }}
  49. dashArray: |
  50. {{ const.orientation[leftOrientation].dashArray }}
  51. style:rightType:
  52. color: blue
  53. offset: |
  54. {{ const.orientation[rightOrientation].width + const.type[rightType].width / 2 + 6 }}
  55. lineCap: butt
  56. width: |
  57. {{ const.type[rightType].width }}
  58. dashArray: |
  59. {{ const.type[rightType].dashArray }}
  60. style:rightOrientation:
  61. color: blue
  62. offset: |
  63. {{ const.orientation[rightOrientation].width / 2 + 4 }}
  64. lineCap: butt
  65. width: |
  66. {{ const.orientation[rightOrientation].width }}
  67. dashArray: |
  68. {{ const.orientation[rightOrientation].dashArray }}
  69. const:
  70. type:
  71. 'no':
  72. width: 6
  73. dashArray: '6,10'
  74. unknown:
  75. width: 3
  76. dashArray: '1,1'
  77. lane:
  78. width: 2
  79. dashArray: ''
  80. separate:
  81. width: 0
  82. dashArray: ''
  83. orientation:
  84. unknown:
  85. width: 6
  86. dashArray: '10,3'
  87. parallel:
  88. width: 3
  89. dashArray: '10,3'
  90. diagonal:
  91. width: 6
  92. dashArray: '5,5'
  93. perpendicular:
  94. width: 10
  95. dashArray: '3,3'