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.

60 lines
1.7 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Law",
  5. "pt-br": "Direito"
  6. },
  7. "query": {
  8. "14": [
  9. "(",
  10. "node[amenity~\"^(courthouse)$\"];",
  11. "way[amenity~\"^(courthouse)$\"];",
  12. "relation[amenity~\"^(courthouse)$\"];",
  13. "node[office~\"^(lawyer|notary)$\"];",
  14. "way[office~\"^(lawyer|notary)$\"];",
  15. "relation[office~\"^(lawyer|notary)$\"];",
  16. ")"
  17. ]
  18. },
  19. "feature": {
  20. "pre": [
  21. "{% if tags.amenity %}",
  22. " {% set key = 'amenity' %}",
  23. " {% set value = tags.amenity %}",
  24. "{% else %}",
  25. " {% set key = 'office' %}",
  26. " {% set value = tags.office %}",
  27. "{% endif %}"
  28. ],
  29. "description": "{{ tagTrans(key, value) }}",
  30. "markerSign": "{{ const[key ~ '=' ~ value].sign|raw }}"
  31. },
  32. "info": [
  33. "<table>",
  34. "{% for kv, data in const %}",
  35. "{% if data.zoom <= map.zoom %}",
  36. " <tr>",
  37. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  38. " <td>",
  39. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  40. " </td>",
  41. " </tr>",
  42. "{% endif %}",
  43. "{% endfor %}",
  44. "</table>"
  45. ],
  46. "const": {
  47. "amenity=courthouse": {
  48. "sign": "<i class=\"fas fa-gavel\"></i>",
  49. "zoom": 14
  50. },
  51. "office=lawyer": {
  52. "sign": "⚖",
  53. "zoom": 14
  54. },
  55. "office=notary": {
  56. "sign": "<i class=\"fas fa-file-signature\"></i>",
  57. "zoom": 14
  58. }
  59. }
  60. }