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.

46 lines
1.5 KiB

6 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Railway Routes"
  5. },
  6. "query": {
  7. "12": "relation[type=route][route=railway]"
  8. },
  9. "members": true,
  10. "feature": {
  11. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#ff0000' })|raw }}",
  12. "description": "{{ tags.operator }}",
  13. "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
  14. "styles": ""
  15. },
  16. "memberFeature": {
  17. "pre": [
  18. "{% set refs = [] %}",
  19. "",
  20. "{% for master in masters %}",
  21. " {% if master.tags.ref %}",
  22. " {% set refs = refs|merge([ master.tags.ref ]) %}",
  23. " {% endif %}",
  24. "{% endfor %}"
  25. ],
  26. "title": "",
  27. "body": [
  28. "<h4>Routes</h4>",
  29. "<ul>",
  30. "{% for master in masters %}",
  31. " <li data-object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</b>{% if master.tags.network %} <i>{{ tagTrans('network', master.tags.network) }}</i>{% endif %}</li>",
  32. "{% endfor %}",
  33. "</ul>"
  34. ],
  35. "listExclude": "1",
  36. "style": {
  37. "color": "#ff0000",
  38. "width": 4,
  39. "opacity": 1,
  40. "text": "{{ refs|join(' ') }} ",
  41. "textRepeat": "1",
  42. "textOffset": "12",
  43. "textFontWeight": "bold"
  44. }
  45. }
  46. }