{ "type": "overpass", "name": { "de": "Routen", "en": "Routes", "fr": "Lignes", "pt-br": "Rotas" }, "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": [ "", "{% for value, data in const %}", "{% if data.zoom <= map.zoom %}", " ", " ", " ", " ", "{% endif %}", "{% endfor %}", "
{{ markerCircle({fillColor:data.color})|raw }}
{{ data.sign|raw }}
{{ tagTrans('route', value) }}
" ], "const": { "train": { "sign": "", "zoom": 12, "color": "#202020" }, "subway": { "sign": "", "zoom": 12, "color": "#00007f" }, "monorail": { "sign": "M", "zoom": 12, "color": "#006f8f" }, "tram": { "sign": "", "zoom": 12, "color": "#7f007f" }, "bus": { "sign": "", "zoom": 12, "color": "#af0000" }, "trolleybus": { "sign": "", "zoom": 12, "color": "#af3f00" }, "aerialway": { "sign": "", "zoom": 12, "color": "#00aaaa" }, "ferry": { "sign": "", "zoom": 12, "color": "#007fff" } } }