From 6cb525a2a255aafebc162f80968a2054a0a9798b Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Tue, 29 Jan 2019 14:23:48 +0000 Subject: [PATCH] Add buses data to the map --- map.js | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/map.js b/map.js index 10be16a..69cee4a 100644 --- a/map.js +++ b/map.js @@ -90,7 +90,13 @@ } } - var fill = (selected ? '#a00' : '#3399ff'); + var fill = '#F60'; + if(vehicle.getId().startsWith('b')) { + fill = '#05B'; + } + if(selected) { + fill = '#292'; + } var image = '<svg xmlns="http://www.w3.org/2000/svg" height="30" width="20"><polygon points="10,0 20,23 0,23" style="fill:'+fill+';stroke:'+color_type+';stroke-width:2" /></svg>'; -- Gitblit v1.9.1