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.

82 lines
2.5 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Routen",
  5. "en": "Routes",
  6. "fr": "Lignes",
  7. "pt": "Rotas",
  8. "pt-br": "Rotas"
  9. },
  10. "query": {
  11. "12": "relation[type=route][route~\"^(subway|monorail|ferry|train)$\"];",
  12. "14": "relation[type=route][route~\"^(subway|monorail|aerialway|bus|trolleybus|ferry|train|tram)$\"];"
  13. },
  14. "feature": {
  15. "title": [
  16. "{% if tags.ref %}{{ tags.ref }} - {% endif %}",
  17. "",
  18. "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
  19. ],
  20. "description": "{{ tagTrans('route', tags.route) }}",
  21. "listMarkerSign": "{{ const[tags.route].sign|raw }}",
  22. "markerSymbol": null,
  23. "listMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}",
  24. "style": {
  25. "color": "{{ const[tags.route].color }}"
  26. }
  27. },
  28. "info": [
  29. "<table>",
  30. "{% for value, data in const %}",
  31. "{% if data.zoom <= map.zoom %}",
  32. " <tr>",
  33. " <td>{{ markerCircle({fillColor:data.color})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  34. " <td>{{ tagTrans('route', value) }}</td>",
  35. " </tr>",
  36. "{% endif %}",
  37. "{% endfor %}",
  38. "</table>"
  39. ],
  40. "const": {
  41. "train": {
  42. "sign": "<img src='maki:rail?fill=#ffffff'>",
  43. "zoom": 12,
  44. "color": "#202020"
  45. },
  46. "subway": {
  47. "sign": "<img src='maki:rail-metro?fill=#ffffff'>",
  48. "zoom": 12,
  49. "color": "#00007f"
  50. },
  51. "monorail": {
  52. "sign": "<span style='color: #ffffff'>M</span>",
  53. "zoom": 12,
  54. "color": "#006f8f"
  55. },
  56. "tram": {
  57. "sign": "<img src='maki:rail-light?fill=#ffffff'>",
  58. "zoom": 12,
  59. "color": "#7f007f"
  60. },
  61. "bus": {
  62. "sign": "<img src='maki:bus?fill=#ffffff'>",
  63. "zoom": 12,
  64. "color": "#af0000"
  65. },
  66. "trolleybus": {
  67. "sign": "<img src='maki:bus?fill=#ffffff'>",
  68. "zoom": 12,
  69. "color": "#af3f00"
  70. },
  71. "aerialway": {
  72. "sign": "<img src='maki:aerialway?fill=#ffffff'>",
  73. "zoom": 12,
  74. "color": "#00aaaa"
  75. },
  76. "ferry": {
  77. "sign": "<img src='maki:ferry?fill=#ffffff'>",
  78. "zoom": 12,
  79. "color": "#007fff"
  80. }
  81. }
  82. }