Main categories of OpenStreetBrowser with public transport zoom level
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.

59 lines
1.6 KiB

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