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.

80 lines
2.5 KiB

{
"type": "overpass",
"name": {
"de": "Routen",
"en": "Routes",
"fr": "Lignes"
},
"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({fillColor:const[tags.route].color})|raw }}",
"style": {
"color": "{{ const[tags.route].color }}"
}
},
"info": [
"<table>",
"{% for value, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({fillColor:data.color})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>{{ tagTrans('route', value) }}</td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"</table>"
],
"const": {
"train": {
"sign": "<img src='maki:rail?fill=#ffffff'>",
"zoom": 12,
"color": "#202020"
},
"subway": {
"sign": "<img src='maki:rail-metro?fill=#ffffff'>",
"zoom": 12,
"color": "#00007f"
},
"monorail": {
"sign": "<span style='color: #ffffff'>M</span>",
"zoom": 12,
"color": "#006f8f"
},
"tram": {
"sign": "<img src='maki:rail-light?fill=#ffffff'>",
"zoom": 12,
"color": "#7f007f"
},
"bus": {
"sign": "<img src='maki:bus?fill=#ffffff'>",
"zoom": 12,
"color": "#af0000"
},
"trolleybus": {
"sign": "<img src='maki:bus?fill=#ffffff'>",
"zoom": 12,
"color": "#af3f00"
},
"aerialway": {
"sign": "<img src='maki:aerialway?fill=#ffffff'>",
"zoom": 12,
"color": "#00aaaa"
},
"ferry": {
"sign": "<img src='maki:ferry?fill=#ffffff'>",
"zoom": 12,
"color": "#007fff"
}
}
}