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.

79 lines
2.5 KiB

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