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.

71 lines
1.6 KiB

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