From ba6e87c3d748ef2cf442dc9165f6bc56e42fdeae Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 29 Jan 2019 14:02:13 +0000
Subject: [PATCH] Show bus stops on map (in blue)

---
 map.js |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/map.js b/map.js
index ff7bd0b..2b9a038 100644
--- a/map.js
+++ b/map.js
@@ -99,16 +99,21 @@
 }
 
 function styleStop(stop, selected) {
-	var fill = 'orange';
-	var stroke = 'red';
+	var fill = '#FA0';
+	var stroke = '#B70';
+	var stroke_selected = '#F00';
 	var stroke_width = 1;
 	var radius = 3;
+	
+	if(stop.get('category') == 'bus') {
+		fill = '#07F';
+		stroke = '#05B';
+	}
 	
 	if(selected == 2) {
 		radius = 5;
 	} else if(selected) {
-		fill = 'red';
-		stroke = '#900';
+		stroke = stroke_selected;
 		stroke_width = 2;
 		radius = 5;
 	}

--
Gitblit v1.9.1