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.

69 lines
2.1 KiB

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