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.

85 lines
2.8 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Fitness trails"
  5. },
  6. "query": {
  7. "14": "relation[type=route][route=fitness_trail]"
  8. },
  9. "members": true,
  10. "feature": {
  11. "body": [
  12. "<h4>Route</h4><ul class='overpass-layer-list'>",
  13. "{% for member in members %}",
  14. "{% if const.roles[member.role] %}",
  15. "<li data-object='{{ member.id }}' data-sublayer='member'>",
  16. " <span class='markerParent'><div class='marker'>{{ markerCircle({})|raw }}</div><div class='icon'>{{ const.roles[member.role].sign|raw }}</div></span>",
  17. " <span class='title'>{{ member.tags.name|default(trans('loading')) }}</span>",
  18. "</li>",
  19. "{% endif %}",
  20. "{% endfor %}",
  21. "</ul>"
  22. ],
  23. "description": "{{ tagTrans('route', 'fitness_trail') }}",
  24. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}",
  25. "styles": "",
  26. "markerSymbol": "",
  27. "style:hover": {
  28. "width": "4",
  29. "color": "#000000",
  30. "radius": "4"
  31. }
  32. },
  33. "memberFeature": {
  34. "pre": [
  35. "{% set master0 = masters[0] %}"
  36. ],
  37. "title": "{{ tags.name }}",
  38. "body": [
  39. "<h4>Routes</h4>",
  40. "<ul class='overpass-layer-list'>",
  41. "{% for master in masters %}",
  42. " <li data-object=\"{{ master.id }}\">",
  43. " <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: '#007fff' })|raw }}</div></span>",
  44. " <span class='title'>{{ master.tags.name }}</span>",
  45. " <span class='description'>{{ tagTrans('route', master.tags.route) }}</span>",
  46. " </li>",
  47. "{% endfor %}",
  48. "</ul>"
  49. ],
  50. "listExclude": "1",
  51. "style": {
  52. "color": "{{ '#007fff' }}",
  53. "width": 4,
  54. "opacity": 1,
  55. "textRepeat": "1",
  56. "textOffset": "12",
  57. "textFontWeight": "bold",
  58. "radius": "3"
  59. },
  60. "style:hover": {
  61. "radius": "4"
  62. },
  63. "markerSymbol": "{% if const.roles[master0.role] %}{{ markerPointer({})|raw }}{% endif %}",
  64. "markerSign": "{% if const.roles[master0.role] %}{{ const.roles[master0.role].sign|raw }}{% endif %} "
  65. },
  66. "const": {
  67. "roles": {
  68. "station": {
  69. "sign": "<img src='maki:pitch'>"
  70. },
  71. "information": {
  72. "sign": "🛈"
  73. },
  74. "start": {
  75. "sign": "⚐"
  76. },
  77. "stop": {
  78. "sign": "🏁"
  79. },
  80. "start_stop": {
  81. "sign": "⚐"
  82. }
  83. }
  84. }
  85. }