Main categories of OpenStreetBrowser with support for whitewater
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.

70 lines
2.2 KiB

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