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.

106 lines
3.1 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ca": "Organitzacions",
  5. "cs": "Organizace",
  6. "de": "Organisationen",
  7. "en": "Organisations",
  8. "es": "Organizaciones",
  9. "fr": "Organisations",
  10. "gl": "Organizacións",
  11. "hu": "Szervezetek",
  12. "it": "Organizzazioni",
  13. "ja": "組織",
  14. "nb": "Organisasjoner",
  15. "nl": "Organisaties",
  16. "oc": "Organizacions",
  17. "pl": "Organizacje",
  18. "pt": "Organizações",
  19. "pt-br": "Organizações",
  20. "ru": "Организации",
  21. "sr": "Организације",
  22. "tr": "Kuruluşlar"
  23. },
  24. "query": {
  25. "13": [
  26. "(",
  27. "nwr[office~\"^(ngo|quango|political_party|association|charity)$\"];",
  28. ")"
  29. ]
  30. },
  31. "feature": {
  32. "pre": [
  33. "{% set key = 'office' %}",
  34. "{% set value = tags.office %}",
  35. ""
  36. ],
  37. "description": "{{ tagTrans(key, value) }}",
  38. "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
  39. "markerSign": [
  40. "{% set data = const[key ~ '=' ~ value] %}",
  41. "{% if data %}",
  42. "{{ data.sign|raw }}",
  43. "{% endif %}"
  44. ],
  45. "priority": [
  46. "{% set data = const[key ~ '=' ~ value] %}",
  47. "{% if data %}",
  48. "{{ data.priority }}",
  49. "{% endif %}"
  50. ]
  51. },
  52. "info": [
  53. "<table>",
  54. "{% for kv, data in const %}",
  55. "{% if data.zoom <= map.zoom %}",
  56. " <tr>",
  57. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  58. " <td>",
  59. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  60. " </td>",
  61. " </tr>",
  62. "{% endif %}",
  63. "{% endfor %}",
  64. "</table>"
  65. ],
  66. "const": {
  67. "office=ngo": {
  68. "priority": 0,
  69. "sign": "<i class='fas fa-users'></i>",
  70. "zoom": 13
  71. },
  72. "office=quango": {
  73. "priority": 0,
  74. "sign": "<i class='fas fa-users'></i>",
  75. "zoom": 13
  76. },
  77. "office=political_party": {
  78. "priority": 0,
  79. "sign": "<i class='fas fa-flag'></i>",
  80. "zoom": 13
  81. },
  82. "office=association": {
  83. "priority": 0,
  84. "sign": "<i class='fas fa-people-carry'></i>",
  85. "zoom": 13
  86. },
  87. "office=foundation": {
  88. "priority": 0,
  89. "sign": "<i class='fas fa-people-carry'></i>",
  90. "zoom": 13
  91. },
  92. "office=charity": {
  93. "priority": 0,
  94. "sign": "<i class='fas fa-hands-helping'></i>",
  95. "zoom": 13
  96. }
  97. },
  98. "filter": {
  99. "type": {
  100. "name": "{{ trans('filter:type') }}",
  101. "show_default": "true",
  102. "type": "select",
  103. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  104. }
  105. }
  106. }