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.

90 lines
2.8 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Typ",
  5. "en": "Type"
  6. },
  7. "query": {
  8. "16": [
  9. "(",
  10. " way[building];",
  11. " relation[building];",
  12. ")"
  13. ]
  14. },
  15. "feature": {
  16. "pre": [
  17. "{% if tags.building == 'yes' %}",
  18. "{% set color = '#7f7f7f' %}",
  19. "{% else %}",
  20. "{% set color = '#7f0000' %}",
  21. "{% endif %}"
  22. ],
  23. "description": [
  24. "{{ tagTrans('building', tags.building) }}"
  25. ],
  26. "markerSymbol": null,
  27. "listMarkerSymbol": "{{ markerCircle({fillColor: color})|raw }}",
  28. "priority": "{{ (approxHeight|default(0)) * -1 }}",
  29. "style": {
  30. "width": "1",
  31. "color": "#000000",
  32. "fillColor": "{{ color }}",
  33. "fillOpacity": "1"
  34. }
  35. },
  36. "info": [
  37. "<div style='display: inline-block'>",
  38. "{{ tagTrans('height') }}",
  39. "<table>",
  40. " <tr>",
  41. " <td>{{ markerCircle({ 'fillColor': '#7f7f7f' })|raw }}</td>",
  42. " <td colspan>{{ trans('unknown') }}</td>",
  43. " </tr>",
  44. "{% for i in range(0, 50, 10) %}",
  45. " <tr>",
  46. " <td>{{ markerCircle({ 'fillColor': colorInterpolate(['green', 'red'], i / 50) })|raw }}</td>",
  47. " <td>{{ i }}m</td>",
  48. " </tr>",
  49. "{% endfor %}",
  50. "{% for i in range(100, 250, 50) %}",
  51. " <tr>",
  52. " <td>{{ markerCircle({ 'fillColor': colorInterpolate(['red', 'yellow'], (i - 50) / 250) })|raw }}</td>",
  53. " <td>{{ i }}m</td>",
  54. " </tr>",
  55. "{% endfor %}",
  56. " <tr>",
  57. " <td>{{ markerCircle({ 'fillColor': 'yellow' })|raw }}</td>",
  58. " <td>≥300m</td>",
  59. " </tr>",
  60. "</table>",
  61. "</div>",
  62. "",
  63. "<div style='display: inline-block'>",
  64. "{{ tagTrans('building:levels') }}",
  65. "<table>",
  66. " <tr>",
  67. " <td>{{ markerCircle({ 'fillColor': '#7f7f7f' })|raw }}</td>",
  68. " <td colspan>{{ trans('unknown') }}</td>",
  69. " </tr>",
  70. "{% for i in range(0, 12, 3) %}",
  71. " <tr>",
  72. " <td>{{ markerCircle({ 'fillColor': colorInterpolate(['green', 'red'], (i * 3.5) / 50) })|raw }}</td>",
  73. " <td>{{ i }}</td>",
  74. " </tr>",
  75. "{% endfor %}",
  76. "{% for i in range(15, 84, 15) %}",
  77. " <tr>",
  78. " <td>{{ markerCircle({ 'fillColor': colorInterpolate(['red', 'yellow'], (i * 3.5 - 50) / 250) })|raw }}</td>",
  79. " <td>{{ i }}</td>",
  80. " </tr>",
  81. "{% endfor %}",
  82. " <tr>",
  83. " <td>{{ markerCircle({ 'fillColor': 'yellow' })|raw }}</td>",
  84. " <td>≥85</td>",
  85. " </tr>",
  86. "</table>",
  87. "",
  88. "</div>"
  89. ]
  90. }