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.

85 lines
2.4 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ca": "Llei",
  5. "cs": "Právo",
  6. "de": "Juristische Institutionen",
  7. "en": "Law",
  8. "es": "Ley",
  9. "fr": "Services législatifs",
  10. "gl": "Leis",
  11. "hu": "Jog",
  12. "it": "Legge",
  13. "ja": "法律",
  14. "nb": "Lov",
  15. "nl": "Juridische diensten",
  16. "oc": "Lèi",
  17. "pl": "Prawo",
  18. "pt": "Direito",
  19. "pt-br": "Direito",
  20. "ru": "Юристы",
  21. "sr": "Закон",
  22. "tr": "Hukuk"
  23. },
  24. "query": {
  25. "14": [
  26. "(",
  27. "node[amenity~\"^(courthouse)$\"];",
  28. "way[amenity~\"^(courthouse)$\"];",
  29. "relation[amenity~\"^(courthouse)$\"];",
  30. "node[office~\"^(lawyer|notary)$\"];",
  31. "way[office~\"^(lawyer|notary)$\"];",
  32. "relation[office~\"^(lawyer|notary)$\"];",
  33. ")"
  34. ]
  35. },
  36. "feature": {
  37. "pre": [
  38. "{% if tags.amenity %}",
  39. " {% set key = 'amenity' %}",
  40. " {% set value = tags.amenity %}",
  41. "{% else %}",
  42. " {% set key = 'office' %}",
  43. " {% set value = tags.office %}",
  44. "{% endif %}"
  45. ],
  46. "description": "{{ tagTrans(key, value) }}",
  47. "markerSign": "{{ const[key ~ '=' ~ value].sign|raw }}"
  48. },
  49. "info": [
  50. "<table>",
  51. "{% for kv, data in const %}",
  52. "{% if data.zoom <= map.zoom %}",
  53. " <tr>",
  54. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  55. " <td>",
  56. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  57. " </td>",
  58. " </tr>",
  59. "{% endif %}",
  60. "{% endfor %}",
  61. "</table>"
  62. ],
  63. "const": {
  64. "amenity=courthouse": {
  65. "sign": "<i class=\"fas fa-gavel\"></i>",
  66. "zoom": 14
  67. },
  68. "office=lawyer": {
  69. "sign": "⚖",
  70. "zoom": 14
  71. },
  72. "office=notary": {
  73. "sign": "<i class=\"fas fa-file-signature\"></i>",
  74. "zoom": 14
  75. }
  76. },
  77. "filter": {
  78. "type": {
  79. "name": "{{ trans('filter:type') }}",
  80. "show_default": "true",
  81. "type": "select",
  82. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  83. }
  84. }
  85. }