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.

141 lines
4.0 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. Left: <ul>
  12. <li>Type: {{ leftType }}</li>
  13. {% if leftType not in ['no', 'separate'] %}
  14. <li>Orientation: {{ leftOrientation }}</li>
  15. {% endif %}
  16. </ul>
  17. Right: <ul>
  18. <li>Type: {{ rightType }}</li>
  19. {% if rightType not in ['no', 'separate'] %}
  20. <li>Orientation: {{ rightOrientation }}</li>
  21. {% endif %}
  22. </ul>
  23. markerSymbol: ''
  24. listMarkerSymbol: line
  25. details: |
  26. Left: {{ leftType }} / {{ leftOrientation }}<br>
  27. Right: {{ rightType }} / {{ rightOrientation }}
  28. styles: |
  29. default
  30. ,leftType
  31. ,rightType
  32. {% if leftType not in ['no', 'separate'] %}
  33. ,leftOrientation
  34. {% endif %}
  35. {% if rightType not in ['no', 'separate'] %}
  36. ,rightOrientation
  37. {% endif %}
  38. style:
  39. color: '#7f7f7f'
  40. style:leftType:
  41. color: red
  42. offset: |
  43. {{ 0 - ((const.orientation[leftOrientation].width) * const.type[leftType].kerbPosition + (const.type[leftType].width / 2) + 4) }}
  44. lineCap: butt
  45. width: |
  46. {{ const.type[leftType].width }}
  47. dashArray: |
  48. {{ const.type[leftType].dashArray }}
  49. style:leftOrientation:
  50. color: red
  51. offset: |
  52. {{ 0 - ((const.type[leftType].width) * (1 - const.type[leftType].kerbPosition) + const.orientation[leftOrientation].width / 2 + 4) }}
  53. lineCap: butt
  54. width: |
  55. {{ const.orientation[leftOrientation].width }}
  56. dashArray: |
  57. {{ const.orientation[leftOrientation].dashArray }}
  58. style:rightType:
  59. color: blue
  60. offset: |
  61. {{ (const.orientation[rightOrientation].width) * const.type[rightType].kerbPosition + (const.type[rightType].width / 2) + 4 }}
  62. lineCap: butt
  63. width: |
  64. {{ const.type[rightType].width }}
  65. dashArray: |
  66. {{ const.type[rightType].dashArray }}
  67. style:rightOrientation:
  68. color: blue
  69. offset: |
  70. {{ (const.type[rightType].width) * (1 - const.type[rightType].kerbPosition) + const.orientation[rightOrientation].width / 2 + 4 }}
  71. lineCap: butt
  72. width: |
  73. {{ const.orientation[rightOrientation].width }}
  74. dashArray: |
  75. {{ const.orientation[rightOrientation].dashArray }}
  76. info: |
  77. Parking Type:
  78. <table>
  79. {% for k, def in const.type %}
  80. <tr>
  81. <td>{{ markerLine(evaluate({ 'parking:both': k, 'parking:both:orientation': 'parallel' })) }}</td>
  82. <td>{{ k }}</td>
  83. </tr>
  84. {% endfor %}
  85. </table>
  86. Parking Orientation:
  87. <table>
  88. {% for k, def in const.orientation %}
  89. <tr>
  90. <td>{{ markerLine(evaluate({ 'parking:both': 'lane', 'parking:both:orientation': k })) }}</td>
  91. <td>{{ k }}</td>
  92. </tr>
  93. {% endfor %}
  94. </table>
  95. const:
  96. type:
  97. 'no':
  98. width: 6
  99. dashArray: '6,10'
  100. kerbPosition: 0
  101. lane:
  102. width: 2
  103. dashArray: ''
  104. kerbPosition: 1
  105. street_side:
  106. width: 2
  107. dashArray: '5,5'
  108. kerbPosition: 1
  109. half_on_kerb:
  110. width: 2
  111. dashArray: ''
  112. kerbPosition: 0.5
  113. on_kerb:
  114. width: 2
  115. dashArray: ''
  116. kerbPosition: 0
  117. shoulder:
  118. width: 3
  119. dashArray: '5,5'
  120. kerbPosition: 0
  121. separate:
  122. width: 0
  123. dashArray: ''
  124. kerbPosition: 0
  125. unknown:
  126. width: 3
  127. dashArray: '1,1'
  128. kerbPosition: 0
  129. orientation:
  130. parallel:
  131. width: 5
  132. dashArray: '10,3'
  133. diagonal:
  134. width: 8
  135. dashArray: '5,5'
  136. perpendicular:
  137. width: 12
  138. dashArray: '3,3'
  139. unknown:
  140. width: 8
  141. dashArray: '1,1'