Main categories of OpenStreetBrowser with support for whitewater
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.6 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Organisations",
  5. "fr": "Organisations",
  6. "pt-br": "Organizações"
  7. },
  8. "query": {
  9. "13": [
  10. "(",
  11. "nwr[office~\"^(ngo|quango|political_party|association|charity)$\"];",
  12. ")"
  13. ]
  14. },
  15. "feature": {
  16. "pre": [
  17. "{% set key = 'office' %}",
  18. "{% set value = tags.office %}",
  19. ""
  20. ],
  21. "description": "{{ tagTrans(key, value) }}",
  22. "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
  23. "markerSign": [
  24. "{% set data = const[key ~ '=' ~ value] %}",
  25. "{% if data %}",
  26. "{{ data.sign|raw }}",
  27. "{% endif %}"
  28. ],
  29. "priority": [
  30. "{% set data = const[key ~ '=' ~ value] %}",
  31. "{% if data %}",
  32. "{{ data.priority }}",
  33. "{% endif %}"
  34. ]
  35. },
  36. "info": [
  37. "<table>",
  38. "{% for kv, data in const %}",
  39. "{% if data.zoom <= map.zoom %}",
  40. " <tr>",
  41. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  42. " <td>",
  43. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  44. " </td>",
  45. " </tr>",
  46. "{% endif %}",
  47. "{% endfor %}",
  48. "</table>"
  49. ],
  50. "const": {
  51. "office=ngo": {
  52. "priority": 0,
  53. "sign": "<i class='fas fa-users'></i>",
  54. "zoom": 13
  55. },
  56. "office=quango": {
  57. "priority": 0,
  58. "sign": "<i class='fas fa-users'></i>",
  59. "zoom": 13
  60. },
  61. "office=political_party": {
  62. "priority": 0,
  63. "sign": "<i class='fas fa-flag'></i>",
  64. "zoom": 13
  65. },
  66. "office=association": {
  67. "priority": 0,
  68. "sign": "<i class='fas fa-people-carry'></i>",
  69. "zoom": 13
  70. },
  71. "office=foundation": {
  72. "priority": 0,
  73. "sign": "<i class='fas fa-people-carry'></i>",
  74. "zoom": 13
  75. },
  76. "office=charity": {
  77. "priority": 0,
  78. "sign": "<i class='fas fa-hands-helping'></i>",
  79. "zoom": 13
  80. }
  81. },
  82. "filter": {
  83. "type": {
  84. "name": "{{ trans('filter:type') }}",
  85. "show_default": "true",
  86. "type": "select",
  87. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  88. }
  89. }
  90. }