diff --git a/pt_routes.json b/pt_routes.json
index 1e61dfc8..22fbb662 100644
--- a/pt_routes.json
+++ b/pt_routes.json
@@ -17,14 +17,17 @@
"description": "{{ tagTrans('route', tags.route) }}",
"listMarkerSign": "{{ const[tags.route].sign|raw }}",
"markerSymbol": null,
- "listMarkerSymbol": "{{ markerCircle({})|raw }}"
+ "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 %}",
" ",
- " {{ markerCircle({})|raw }} {{ data.sign|raw }} | ",
+ " {{ markerCircle({fillColor:data.color})|raw }} {{ data.sign|raw }} | ",
" {{ tagTrans('amenity', value) }} | ",
"
",
"{% endif %}",
@@ -33,36 +36,44 @@
],
"const": {
"train": {
- "sign": "",
- "zoom": 12
+ "sign": "",
+ "zoom": 12,
+ "color": "#202020"
},
"subway": {
- "sign": "",
- "zoom": 12
+ "sign": "",
+ "zoom": 12,
+ "color": "#00007f"
},
"monorail": {
- "sign": "M",
- "zoom": 12
+ "sign": "M",
+ "zoom": 12,
+ "color": "#006f8f"
},
"tram": {
- "sign": "",
- "zoom": 12
+ "sign": "",
+ "zoom": 12,
+ "color": "#7f007f"
},
"bus": {
- "sign": "",
- "zoom": 12
+ "sign": "",
+ "zoom": 12,
+ "color": "#af0000"
},
"trolleybus": {
- "sign": "",
- "zoom": 12
+ "sign": "",
+ "zoom": 12,
+ "color": "#af3f00"
},
"aerialway": {
- "sign": "",
- "zoom": 12
+ "sign": "",
+ "zoom": 12,
+ "color": "#00aaaa"
},
"ferry": {
- "sign": "",
- "zoom": 12
+ "sign": "",
+ "zoom": 12,
+ "color": "#007fff"
}
}
}
\ No newline at end of file