Main categories of OpenStreetBrowser with support for whitewater
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.

80 lines
2.5 KiB

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