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.

120 lines
3.6 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Dineru",
  5. "ca": "Financer",
  6. "cs": "Finanční služby",
  7. "de": "Finanzen",
  8. "el": "Χρήμα",
  9. "en": "Financial",
  10. "es": "Financiera",
  11. "fr": "Finance",
  12. "gl": "Finanzas",
  13. "hu": "Pénzügyek",
  14. "it": "Finanziario",
  15. "ja": "金融",
  16. "nb": "Finansiell",
  17. "nl": "Financieel",
  18. "oc": "Finança",
  19. "pl": "Finansowe",
  20. "pt": "Finanças",
  21. "pt-br": "Finanças e seguros",
  22. "ro": "Financiar",
  23. "ru": "Финансы",
  24. "sr": "Финансије",
  25. "tr": "Finansal",
  26. "uk": "Фінанси"
  27. },
  28. "query": {
  29. "14": [
  30. "(",
  31. "node[amenity~\"^(bank)$\"];",
  32. "way[amenity~\"^(bank)$\"];",
  33. "relation[amenity~\"^(bank)$\"];",
  34. ")"
  35. ],
  36. "15": [
  37. "(",
  38. "node[amenity~\"^(bank|bureau_de_change|atm)$\"];",
  39. "way[amenity~\"^(bank|bureau_de_change|atm)$\"];",
  40. "relation[amenity~\"^(bank|bureau_de_change|atm)$\"];",
  41. "node[office~\"^(financial|accountant|insurance|tax|tax_advisor)$\"];",
  42. "way[office~\"^(financial|accountant|insurance|tax|tax_advisor)$\"];",
  43. "relation[office~\"^(financial|accountant|insurance|tax|tax_advisor)$\"];",
  44. ")"
  45. ]
  46. },
  47. "feature": {
  48. "pre": [
  49. "{% if tags.amenity %}",
  50. " {% set key = 'amenity' %}",
  51. " {% set value = tags.amenity %}",
  52. "{% else %}",
  53. " {% set key = 'office' %}",
  54. " {% set value = tags.office %}",
  55. "{% endif %}"
  56. ],
  57. "description": "{{ tagTrans(key, value) }}",
  58. "markerSign": "{{ const[key ~ '=' ~ value].sign|raw }}"
  59. },
  60. "info": [
  61. "<table>",
  62. "{% for kv, data in const %}",
  63. "{% if data.zoom <= map.zoom %}",
  64. " <tr>",
  65. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  66. " <td>",
  67. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  68. " </td>",
  69. " </tr>",
  70. "{% endif %}",
  71. "{% endfor %}",
  72. "</table>"
  73. ],
  74. "const": {
  75. "amenity=atm": {
  76. "sign": "<img data-src='maki:bank?size=11'>",
  77. "zoom": 15
  78. },
  79. "amenity=bank": {
  80. "sign": "<img data-src='maki:building'>",
  81. "zoom": 14
  82. },
  83. "amenity=bureau_de_change": {
  84. "sign": "⇄",
  85. "zoom": 15
  86. },
  87. "office=financial": {
  88. "sign": "<i class=\"fas fa-coins\"></i>",
  89. "zoom": 15
  90. },
  91. "office=accountant": {
  92. "sign": "<i class=\"fas fa-book\"></i>",
  93. "zoom": 15
  94. },
  95. "office=insurance": {
  96. "sign": "<i class=\"fas fa-file-signature\"></i>",
  97. "zoom": 15
  98. },
  99. "office=tax": {
  100. "sign": "%",
  101. "zoom": 15
  102. },
  103. "office=tax_advisor": {
  104. "sign": "<span style='color: green'>%</span>",
  105. "zoom": 15
  106. },
  107. "office=cooperative": {
  108. "sign": "<i class=\"fas fa-piggy-bank\"></i>",
  109. "zoom": 15
  110. }
  111. },
  112. "filter": {
  113. "type": {
  114. "name": "{{ trans('filter:type') }}",
  115. "show_default": "true",
  116. "type": "select",
  117. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  118. }
  119. }
  120. }