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.

58 lines
1.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>Stations</h4><ul>",
  13. "{% for member in members %}",
  14. "{% if member.role == 'station' %}",
  15. "<li data-object='{{ member.id }}' data-sublayer='member'>{{ member.tags.name|default(trans('loading')) }}</li>",
  16. "{% endif %}",
  17. "{% endfor %}",
  18. "</ul>"
  19. ],
  20. "description": "{{ tagTrans('route', 'fitness_trail') }}",
  21. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}",
  22. "styles": "",
  23. "markerSymbol": "",
  24. "style:hover": {
  25. "width": "4",
  26. "color": "#000000",
  27. "radius": "4"
  28. }
  29. },
  30. "memberFeature": {
  31. "title": "{{ tags.name }}",
  32. "body": [
  33. "<h4>Routes</h4>",
  34. "<ul class='overpass-layer-list'>",
  35. "{% for master in masters %}",
  36. " <li data-object=\"{{ master.id }}\">",
  37. " <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: '#007fff' })|raw }}</div></span>",
  38. " <span class='title'>{{ master.tags.name }}</span>",
  39. " <span class='description'>{{ tagTrans('route', master.tags.route) }}</span>",
  40. " </li>",
  41. "{% endfor %}",
  42. "</ul>"
  43. ],
  44. "listExclude": "1",
  45. "style": {
  46. "color": "{{ '#007fff' }}",
  47. "width": 4,
  48. "opacity": 1,
  49. "textRepeat": "1",
  50. "textOffset": "12",
  51. "textFontWeight": "bold",
  52. "radius": "3"
  53. },
  54. "style:hover": {
  55. "radius": "4"
  56. }
  57. }
  58. }