Main categories of OpenStreetBrowser with public transport zoom level
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.

53 lines
2.1 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Mountain bike routes",
  5. "fr": "Itinéraires de VTT",
  6. "hu": "Hegyikerékpáros útvonalak",
  7. "pt-br": "Rotas de mountain bike"
  8. },
  9. "query": {
  10. "13": "relation[type=route][route~\"(|.*;)mtb(|;.*)\"]"
  11. },
  12. "members": true,
  13. "feature": {
  14. "description": "{{ tagTrans('route', 'mtb') }}",
  15. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}",
  16. "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
  17. "styles": "",
  18. "markerSymbol": ""
  19. },
  20. "memberFeature": {
  21. "pre": [
  22. "{% set refs = [] %}",
  23. "",
  24. "{% for master in masters %}",
  25. " {% if master.tags.ref %}",
  26. " {% set refs = refs|merge([ master.tags.ref ]) %}",
  27. " {% endif %}",
  28. "{% endfor %}"
  29. ],
  30. "body": [
  31. "<h4>Routes</h4>",
  32. "<ul class='overpass-layer-list'>",
  33. "{% for master in masters %}",
  34. " <li data-object=\"{{ master.id }}\">",
  35. " <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: '#007fff' })|raw }}</div></span>",
  36. " <span class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</span>",
  37. " <span class='description'>{{ tagTrans('route', 'mtb') }}</span>",
  38. " </li>",
  39. "{% endfor %}",
  40. "</ul>"
  41. ],
  42. "listExclude": "1",
  43. "style": {
  44. "color": "#007fff",
  45. "width": 4,
  46. "opacity": 1,
  47. "text": "{{ refs|join(' · ') }} ",
  48. "textRepeat": "1",
  49. "textOffset": "12",
  50. "textFontWeight": "bold"
  51. }
  52. }
  53. }