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.

150 lines
4.4 KiB

  1. name:
  2. ca: Alçada de l'edifici
  3. cs: Výška budovy
  4. de: Gebäudehöhen
  5. en: Building height
  6. es: Altura del edificio
  7. fr: Hauteur
  8. gl: Altitude do edificio
  9. hu: Épületek magassága
  10. it: Altezza dell'edificio
  11. ja: 建物の高さ
  12. nb: Bygningshøyde
  13. nl: Bouwhoogte
  14. oc: Autor de la bastissa
  15. pl: Wysokości budynków
  16. pt-br: Altura
  17. pt: Altura dos edifícios
  18. ro: Înălțimea clădirii
  19. ru: Высота здания
  20. sr: Висина зграде
  21. tr: Bina yüksekliği
  22. query:
  23. 16: |-
  24. (
  25. way[building];
  26. relation[building];
  27. )
  28. feature:
  29. pre: |-
  30. {% if tags.height is defined %}
  31. {% set approxHeight = tags.height %}
  32. {% set m = tags.height|matches('(.*)\s*(m|ft)$') %}
  33. {% if m and m[2] == 'm' %}{% set approxHeight = m[1] %}{% endif %}
  34. {% if m and m[2] == 'ft' %}{% set approxHeight = m[1] / 3.2808 %}{% endif %}
  35. {% elseif attribute(tags, 'building:levels') is defined %}
  36. {% set approxHeight = attribute(tags, 'building:levels') * 3.5 %}
  37. {% endif %}
  38. {% if approxHeight <= 50 %}
  39. {% set color = colorInterpolate(['green', 'red'], approxHeight / 50) %}
  40. {% elseif approxHeight %}
  41. {% set color = colorInterpolate(['red', 'yellow'], (approxHeight - 50) / 250) %}
  42. {% else %}
  43. {% set color = '#7f7f7f' %}
  44. {% endif %}
  45. description: |-
  46. {% if tags.building == 'yes' and tags.military %}
  47. {{ tagTrans('building', 'military') }}
  48. {% elseif tags.building == 'yes' %}
  49. {{ keyTrans('building') }}
  50. {% else %}
  51. {{ tagTransList('building', tags.building) }}
  52. {% endif %}
  53. {% if tags.building == 'construction' and tags.construction %}
  54. ({{ tagTransList('building', tags.construction) }})
  55. {% endif %}
  56. {% if tags.building in [ 'yes', 'military' ] and tags.military %}
  57. ({{ tagTransList('military', tags.military) }})
  58. {% endif %}
  59. details: |-
  60. {% if tags.height is defined %}
  61. {% if tags.height|matches('(m|ft)$') %}{{ tags.height -}}
  62. {% else %}{{ tags.height }}&nbsp;m
  63. {%- endif -%}
  64. {% endif -%}
  65. {%- if attribute(tags, 'building:levels') is defined -%}
  66. {%- if tags.height is defined %}, {% endif %}
  67. {{ attribute(tags, 'building:levels') }} {{ keyTrans('building:levels') }}
  68. {% endif %}
  69. markerSymbol: null
  70. listMarkerSymbol: |-
  71. {{ markerPolygon({"fillColor": color, "fillOpacity": 0.8, "width": 1, "color": "#000000" })|raw }}
  72. markerSign: |-
  73. {% if map.zoom >= 18 %}
  74. <span style="color: white; font-size: 80%; line-height: 80%;">
  75. {%- if attribute(tags, 'building:levels') is defined -%}
  76. {{ attribute(tags, 'building:levels') }}
  77. <br>
  78. {% endif %}
  79. {% if tags.height is defined %}
  80. {% if tags.height|matches('(m|ft)$') %}({{ tags.height -}})
  81. {% else %}({{ tags.height }}m)
  82. {%- endif -%}
  83. {% endif -%}
  84. </span>
  85. {% else %} {% endif %}
  86. listMarkerSign: ' '
  87. priority: |-
  88. {{ (approxHeight|default(0)) * -1 }}
  89. style:
  90. width: 1
  91. color: '#000000'
  92. fillColor: |-
  93. {{ color }}
  94. fillOpacity: 1
  95. info: |-
  96. <div style='display: inline-block'>
  97. {{ tagTrans('height') }}
  98. <table>
  99. <tr>
  100. <td>{{ markerPolygon(evaluate({ "building": "yes" }))|raw }}</td>
  101. <td colspan>{{ trans('unknown') }}</td>
  102. </tr>
  103. {% for i in range(0, 50, 10) %}
  104. <tr>
  105. <td>{{ markerPolygon(evaluate({ "building": "yes", "height": i }))|raw }}</td>
  106. <td>{{ i }}m</td>
  107. </tr>
  108. {% endfor %}
  109. {% for i in range(100, 250, 50) %}
  110. <tr>
  111. <td>{{ markerPolygon(evaluate({ "building": "yes", "height": i }))|raw }}</td>
  112. <td>{{ i }}m</td>
  113. </tr>
  114. {% endfor %}
  115. <tr>
  116. <td>{{ markerPolygon(evaluate({ "building": "yes", "height": "300" }))|raw }}</td>
  117. <td>≥300m</td>
  118. </tr>
  119. </table>
  120. </div>
  121. <div style='display: inline-block'>
  122. {{ tagTrans('building:levels') }}
  123. <table>
  124. <tr>
  125. <td>{{ markerPolygon(evaluate({ "building": "yes" }))|raw }}</td>
  126. <td colspan>{{ trans('unknown') }}</td>
  127. </tr>
  128. {% for i in range(0, 12, 3) %}
  129. <tr>
  130. <td>{{ markerPolygon(evaluate({ "building": "yes", "building:levels": i }))|raw }}</td>
  131. <td>{{ i }}</td>
  132. </tr>
  133. {% endfor %}
  134. {% for i in range(15, 84, 15) %}
  135. <tr>
  136. <td>{{ markerPolygon(evaluate({ "building": "yes", "building:levels": i }))|raw }}</td>
  137. <td>{{ i }}</td>
  138. </tr>
  139. {% endfor %}
  140. <tr>
  141. <td>{{ markerPolygon(evaluate({ "building": "yes", "building:levels": "85" }))|raw }}</td>
  142. <td>≥85</td>
  143. </tr>
  144. </table>
  145. </div>