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.

81 lines
2.2 KiB

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