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.

81 lines
2.5 KiB

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