diff --git a/src/pages/MapPage.vue b/src/pages/MapPage.vue index dcfdc4a..e1c3bea 100644 --- a/src/pages/MapPage.vue +++ b/src/pages/MapPage.vue @@ -19,8 +19,9 @@
- Train Icon - Train Icon + Late Train Icon + On-Time Train Icon + Not Running Train Icon
@@ -118,6 +119,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);