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.

68 lines
2.0 KiB

{
"type": "overpass",
"name": {
"en": "Routes",
"de": "Routen"
},
"query": {
"12": "relation[type=route][route~\"^(subway|monorail|ferry|train)$\"];",
"14": "relation[type=route][route~\"^(subway|monorail|aerialway|bus|trolleybus|ferry|train|tram)$\"];"
},
"feature": {
"title": [
"{% if tags.ref %}{{ tags.ref }} - {% endif %}",
"",
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
],
"description": "{{ tagTrans('route', tags.route) }}",
"listMarkerSign": "{{ const[tags.route].sign|raw }}",
"markerSymbol": null,
"listMarkerSymbol": "{{ markerCircle({})|raw }}"
},
"info": [
"<table>",
"{% for value, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>{{ tagTrans('amenity', value) }}</td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"</table>"
],
"const": {
"train": {
"sign": "<img src='maki:rail'>",
"zoom": 12
},
"subway": {
"sign": "<img src='maki:rail-metro'>",
"zoom": 12
},
"monorail": {
"sign": "M",
"zoom": 12
},
"tram": {
"sign": "<img src='maki:rail-light'>",
"zoom": 12
},
"bus": {
"sign": "<img src='maki:bus'>",
"zoom": 12
},
"trolleybus": {
"sign": "<img src='maki:bus?fill=#5f0000'>",
"zoom": 12
},
"aerialway": {
"sign": "<img src='maki:aerialway'>",
"zoom": 12
},
"ferry": {
"sign": "<img src='maki:ferry'>",
"zoom": 12
}
}
}