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.

68 lines
2.1 KiB

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