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.

68 lines
2.7 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ca": "Rutes Ciclistes de Muntanya",
  5. "cs": "Stezky pro horská kola",
  6. "de": "Mointainbikerouten",
  7. "en": "Mountain bike routes",
  8. "es": "Rutas de ciclismo de montaña",
  9. "fr": "Itinéraires de VTT",
  10. "gl": "Rotas de bicicleta de montaña",
  11. "hu": "Hegyikerékpáros útvonalak",
  12. "it": "Percorsi per mountain bike",
  13. "ja": "マウンテンバイクのルート",
  14. "nb": "Terrengsykkelruter",
  15. "nl": "ATB routes",
  16. "oc": "Itineraris de VTT",
  17. "pl": "Trasy dla rowerów górskich",
  18. "pt": "Rotas de bicicleta de montanha",
  19. "pt-br": "Rotas de mountain bike",
  20. "ru": "Маршруты для горных велосипедов",
  21. "sr": "Трасе за планинске бицикле",
  22. "tr": "Dağ bisikleti rotaları"
  23. },
  24. "query": {
  25. "13": "relation[type=route][route~\"(|.*;)mtb(|;.*)\"]"
  26. },
  27. "members": true,
  28. "feature": {
  29. "description": "{{ tagTrans('route', 'mtb') }}",
  30. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}",
  31. "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
  32. "styles": "",
  33. "markerSymbol": ""
  34. },
  35. "memberFeature": {
  36. "pre": [
  37. "{% set refs = [] %}",
  38. "",
  39. "{% for master in masters %}",
  40. " {% if master.tags.ref %}",
  41. " {% set refs = refs|merge([ master.tags.ref ]) %}",
  42. " {% endif %}",
  43. "{% endfor %}"
  44. ],
  45. "body": [
  46. "<h4>Routes</h4>",
  47. "<ul class='overpass-layer-list'>",
  48. "{% for master in masters %}",
  49. " <li data-object=\"{{ master.id }}\">",
  50. " <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: '#007fff' })|raw }}</div></span>",
  51. " <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>",
  52. " <span class='description'>{{ tagTrans('route', 'mtb') }}</span>",
  53. " </li>",
  54. "{% endfor %}",
  55. "</ul>"
  56. ],
  57. "listExclude": "1",
  58. "style": {
  59. "color": "#007fff",
  60. "width": 4,
  61. "opacity": 1,
  62. "text": "{{ refs|join(' · ') }} ",
  63. "textRepeat": "1",
  64. "textOffset": "12",
  65. "textFontWeight": "bold"
  66. }
  67. }
  68. }