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.

65 lines
1.9 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Denkmäler",
  5. "en": "Memorials"
  6. },
  7. "query": {
  8. "11": [
  9. "(",
  10. "node[historic~\"^(monument)$\"];",
  11. "way[historic~\"^(monument)$\"];",
  12. "relation[historic~\"^(monument)$\"];",
  13. ")"
  14. ],
  15. "14": [
  16. "(",
  17. "node[historic~\"^(memorial|monument)$\"];",
  18. "way[historic~\"^(memorial|monument)$\"];",
  19. "relation[historic~\"^(memorial|monument)$\"];",
  20. ")"
  21. ]
  22. },
  23. "feature": {
  24. "pre": [
  25. "{% set value = tags.historic %}",
  26. "{% if const[tags.historic ~ ' memorial=' ~ tags.memorial] %}",
  27. " {% set value = tags.historic ~ ' memorial=' ~ tags.memorial %}",
  28. "{% endif %}"
  29. ],
  30. "description": "{{ tagTransList('historic', value) }}",
  31. "markerSign": "{{ const[value].sign|raw }}"
  32. },
  33. "info": [
  34. "<table>",
  35. "{% for value, data in const %}",
  36. "{% if data.zoom <= map.zoom %}",
  37. " <tr>",
  38. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  39. " <td>{{ tagTrans('historic', value) }}</td>",
  40. " </tr>",
  41. "{% endif %}",
  42. "{% endfor %}",
  43. "{% if 14 <= map.zoom %}",
  44. " <tr>",
  45. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  46. " <td>{{ trans('other') }}</td>",
  47. " </tr>",
  48. "{% endif %}",
  49. "</table>"
  50. ],
  51. "const": {
  52. "memorial": {
  53. "sign": "<span style='position: relative; top: -2px;'><img src='maki:monument?size=11'></span>",
  54. "zoom": 14
  55. },
  56. "memorial memorial=plaque": {
  57. "sign": "",
  58. "zoom": 14
  59. },
  60. "monument": {
  61. "sign": "<img src='maki:monument?size=15'>",
  62. "zoom": 11
  63. }
  64. }
  65. }