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.

116 lines
3.4 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].kerbPosition + (const.type[leftType].width / 2) + 4) }}
  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.type[leftType].width) * (1 - const.type[leftType].kerbPosition) + 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].kerbPosition + (const.type[rightType].width / 2) + 4 }}
  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.type[rightType].width) * (1 - const.type[rightType].kerbPosition) + 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. kerbPosition: 0
  75. unknown:
  76. width: 3
  77. dashArray: '1,1'
  78. kerbPosition: 0
  79. lane:
  80. width: 2
  81. dashArray: ''
  82. kerbPosition: 1
  83. street_side:
  84. width: 2
  85. dashArray: '10,5'
  86. kerbPosition: 1
  87. half_on_kerb:
  88. width: 2
  89. dashArray: ''
  90. kerbPosition: 0.5
  91. on_kerb:
  92. width: 2
  93. dashArray: ''
  94. kerbPosition: 0
  95. shoulder:
  96. width: 3
  97. dashArray: '10,3'
  98. kerbPosition: 0
  99. separate:
  100. width: 0
  101. dashArray: ''
  102. kerbPosition: 0
  103. orientation:
  104. unknown:
  105. width: 8
  106. dashArray: '10,3'
  107. parallel:
  108. width: 5
  109. dashArray: '10,3'
  110. diagonal:
  111. width: 8
  112. dashArray: '5,5'
  113. perpendicular:
  114. width: 12
  115. dashArray: '3,3'