diff --git a/src/pages/MapPage.vue b/src/pages/MapPage.vue index cde80f7..c3bcb4e 100644 --- a/src/pages/MapPage.vue +++ b/src/pages/MapPage.vue @@ -31,8 +31,9 @@
- Train Icon - Train Icon + Late Train Icon + On-Time Train Icon + Not Running Train Icon
@@ -129,6 +130,16 @@ export default { return false; }, + // method to determine whether or not a selected train is running + isTrainRunning(i) { + if (this.allDataMap[i]["TrainStatus"][0] == "R") { + return true; + } + else { + return false; + } + }, + // method to fetch live train data from the database getLiveTrainData() { const functions = getFunctions(app);