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.

87 lines
2.8 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 tags.historic == 'memorial' and tags.memorial %}",
  27. " {% set value = tags.historic ~ ' memorial=' ~ tags.memorial %}",
  28. "{% elseif tags.historic == 'memorial' and attribute(tags, 'memorial:type') %}",
  29. " {% set value = tags.historic ~ ' memorial=' ~ attribute(tags, 'memorial:type') %}",
  30. "{% endif %}"
  31. ],
  32. "description": "{{ tagTransList('historic', value) }}",
  33. "markerSign": "{{ const[value].sign|raw }}"
  34. },
  35. "info": [
  36. "<table>",
  37. "{% for value, data in const %}",
  38. "{% if data.zoom <= map.zoom %}",
  39. " <tr>",
  40. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  41. " <td>{{ tagTrans('historic', value) }}</td>",
  42. " </tr>",
  43. "{% endif %}",
  44. "{% endfor %}",
  45. "{% if 14 <= map.zoom %}",
  46. " <tr>",
  47. " <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>",
  48. " <td>{{ trans('other') }}</td>",
  49. " </tr>",
  50. "{% endif %}",
  51. "</table>"
  52. ],
  53. "const": {
  54. "memorial": {
  55. "sign": "<span style='position: relative; top: -2px;'><img src='maki:monument?size=11'></span>",
  56. "zoom": 14
  57. },
  58. "memorial memorial=plaque": {
  59. "sign": "",
  60. "zoom": 14
  61. },
  62. "monument": {
  63. "sign": "<img src='maki:monument?size=15'>",
  64. "zoom": 11
  65. }
  66. },
  67. "filter": {
  68. "type": {
  69. "name": "Type",
  70. "type": "select",
  71. "values": {
  72. "monument": {
  73. "name": "{{ tagTrans('historic', 'monument') }}",
  74. "query": "nwr[historic=monument]"
  75. },
  76. "memorial": {
  77. "name": "{{ tagTrans('historic', 'memorial') }}",
  78. "query": "nwr[historic=memorial]"
  79. },
  80. "stolperstein": {
  81. "name": "{{ tagTrans('historic', 'memorial memorial=stolperstein') }}",
  82. "query": "(nwr[memorial=stolperstein];nwr[\"memorial:type\"=stolperstein];)"
  83. }
  84. }
  85. }
  86. }
  87. }