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.

63 lines
2.1 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. "pre": [
  32. "{% set master0 = masters[0] %}"
  33. ],
  34. "title": "{{ tags.name }}",
  35. "body": [
  36. "<h4>Routes</h4>",
  37. "<ul class='overpass-layer-list'>",
  38. "{% for master in masters %}",
  39. " <li data-object=\"{{ master.id }}\">",
  40. " <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: '#007fff' })|raw }}</div></span>",
  41. " <span class='title'>{{ master.tags.name }}</span>",
  42. " <span class='description'>{{ tagTrans('route', master.tags.route) }}</span>",
  43. " </li>",
  44. "{% endfor %}",
  45. "</ul>"
  46. ],
  47. "listExclude": "1",
  48. "style": {
  49. "color": "{{ '#007fff' }}",
  50. "width": 4,
  51. "opacity": 1,
  52. "textRepeat": "1",
  53. "textOffset": "12",
  54. "textFontWeight": "bold",
  55. "radius": "3"
  56. },
  57. "style:hover": {
  58. "radius": "4"
  59. },
  60. "markerSymbol": "{% if master0.role == 'station' %}{{ markerPointer({})|raw }}{% endif %}",
  61. "markerSign": "{% if master0.role == 'station' %}S{% endif %} "
  62. }
  63. }