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.

121 lines
3.5 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. details: |
  25. Left: {{ leftType }} / {{ leftOrientation }}<br>
  26. Right: {{ rightType }} / {{ rightOrientation }}
  27. styles: |
  28. default
  29. ,leftType
  30. ,rightType
  31. {% if leftType not in ['no', 'separate'] %}
  32. ,leftOrientation
  33. {% endif %}
  34. {% if rightType not in ['no', 'separate'] %}
  35. ,rightOrientation
  36. {% endif %}
  37. style:
  38. color: '#7f7f7f'
  39. style:leftType:
  40. color: red
  41. offset: |
  42. {{ 0 - ((const.orientation[leftOrientation].width) * const.type[leftType].kerbPosition + (const.type[leftType].width / 2) + 4) }}
  43. lineCap: butt
  44. width: |
  45. {{ const.type[leftType].width }}
  46. dashArray: |
  47. {{ const.type[leftType].dashArray }}
  48. style:leftOrientation:
  49. color: red
  50. offset: |
  51. {{ 0 - ((const.type[leftType].width) * (1 - const.type[leftType].kerbPosition) + const.orientation[leftOrientation].width / 2 + 4) }}
  52. lineCap: butt
  53. width: |
  54. {{ const.orientation[leftOrientation].width }}
  55. dashArray: |
  56. {{ const.orientation[leftOrientation].dashArray }}
  57. style:rightType:
  58. color: blue
  59. offset: |
  60. {{ (const.orientation[rightOrientation].width) * const.type[rightType].kerbPosition + (const.type[rightType].width / 2) + 4 }}
  61. lineCap: butt
  62. width: |
  63. {{ const.type[rightType].width }}
  64. dashArray: |
  65. {{ const.type[rightType].dashArray }}
  66. style:rightOrientation:
  67. color: blue
  68. offset: |
  69. {{ (const.type[rightType].width) * (1 - const.type[rightType].kerbPosition) + const.orientation[rightOrientation].width / 2 + 4 }}
  70. lineCap: butt
  71. width: |
  72. {{ const.orientation[rightOrientation].width }}
  73. dashArray: |
  74. {{ const.orientation[rightOrientation].dashArray }}
  75. const:
  76. type:
  77. 'no':
  78. width: 6
  79. dashArray: '6,10'
  80. kerbPosition: 0
  81. unknown:
  82. width: 3
  83. dashArray: '1,1'
  84. kerbPosition: 0
  85. lane:
  86. width: 2
  87. dashArray: ''
  88. kerbPosition: 1
  89. street_side:
  90. width: 2
  91. dashArray: '10,5'
  92. kerbPosition: 1
  93. half_on_kerb:
  94. width: 2
  95. dashArray: ''
  96. kerbPosition: 0.5
  97. on_kerb:
  98. width: 2
  99. dashArray: ''
  100. kerbPosition: 0
  101. shoulder:
  102. width: 3
  103. dashArray: '10,3'
  104. kerbPosition: 0
  105. separate:
  106. width: 0
  107. dashArray: ''
  108. kerbPosition: 0
  109. orientation:
  110. unknown:
  111. width: 8
  112. dashArray: '10,3'
  113. parallel:
  114. width: 5
  115. dashArray: '10,3'
  116. diagonal:
  117. width: 8
  118. dashArray: '5,5'
  119. perpendicular:
  120. width: 12
  121. dashArray: '3,3'