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.

66 lines
2.2 KiB

  1. type: overpass
  2. name:
  3. ca: Rutes Fèrries
  4. cs: Železniční trasy
  5. de: Eisenbahnrouten
  6. en: Railway Routes
  7. es: Rutas de ferrocarril
  8. fr: Lignes ferroviaires
  9. gl: Liñas de ferrocarril
  10. hu: Vasútvonalak
  11. it: Percorsi ferroviari
  12. ja: 鉄道ルート
  13. nb: Jernbaneruter
  14. nl: Spoorwegroutes
  15. oc: Linhas ferroviàrias
  16. pl: Trasy kolejowe
  17. pt: Rotas ferroviárias
  18. pt-br: Rotas ferroviárias
  19. ru: Железнодорожные маршруты
  20. sr: Трасе железнице
  21. tr: Demiryolu Güzergahları
  22. query:
  23. 12: relation[type=route][route=railway]
  24. members: true
  25. feature:
  26. pre: '{% set color = ''#'' ~ tags.operator|default('''')|md5|slice(0, 6) %}'
  27. listMarkerSymbol: '{{ markerLine({ ''width'': 4, ''color'': color })|raw }}'
  28. description: '{{ tags.operator }}'
  29. title: '{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}'
  30. styles: ''
  31. markerSymbol: ''
  32. memberFeature:
  33. pre: |-
  34. {% set refs = [] %}
  35. {% set color = '#d41d8c' %}
  36. {% for master in masters %}
  37. {% if master.tags.operator %}
  38. {% set color = '#' ~ master.tags.operator|md5|slice(0, 6) %}
  39. {% endif %}
  40. {% if master.tags.ref %}
  41. {% set refs = refs|merge([ master.tags.ref ]) %}
  42. {% endif %}
  43. {% endfor %}
  44. title: ''
  45. body: |-
  46. <h4>Routes</h4>
  47. <ul>
  48. {% for master in masters %}
  49. {% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %}
  50. <li data-object="{{ master.id }}" style='list-style: none;'>
  51. <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: _color })|raw }}</div></span>
  52. <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>
  53. <span class='description'>{{ master.tags.operator }}</span>
  54. </li>
  55. {% endfor %}
  56. </ul>
  57. listExclude: '1'
  58. style:
  59. color: '{{ color }}'
  60. width: 4
  61. opacity: 1
  62. text: '{{ refs|join('' · '') }} '
  63. textRepeat: '1'
  64. textOffset: '12'
  65. textFontWeight: bold