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.

67 lines
2.0 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Routes",
  5. "de": "Routen"
  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({})|raw }}"
  21. },
  22. "info": [
  23. "<table>",
  24. "{% for value, data in const %}",
  25. "{% if data.zoom <= map.zoom %}",
  26. " <tr>",
  27. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  28. " <td>{{ tagTrans('amenity', value) }}</td>",
  29. " </tr>",
  30. "{% endif %}",
  31. "{% endfor %}",
  32. "</table>"
  33. ],
  34. "const": {
  35. "train": {
  36. "sign": "<img src='maki:rail'>",
  37. "zoom": 12
  38. },
  39. "subway": {
  40. "sign": "<img src='maki:rail-metro'>",
  41. "zoom": 12
  42. },
  43. "monorail": {
  44. "sign": "M",
  45. "zoom": 12
  46. },
  47. "tram": {
  48. "sign": "<img src='maki:rail-light'>",
  49. "zoom": 12
  50. },
  51. "bus": {
  52. "sign": "<img src='maki:bus'>",
  53. "zoom": 12
  54. },
  55. "trolleybus": {
  56. "sign": "<img src='maki:bus?fill=#5f0000'>",
  57. "zoom": 12
  58. },
  59. "aerialway": {
  60. "sign": "<img src='maki:aerialway'>",
  61. "zoom": 12
  62. },
  63. "ferry": {
  64. "sign": "<img src='maki:ferry'>",
  65. "zoom": 12
  66. }
  67. }
  68. }