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.

80 lines
2.2 KiB

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