Commit a704e020 authored by dagal's avatar dagal
Browse files

Display lines in stop popup

parent b30bfabe
<template>
<div class="stop-popup" v-if="stop && stop.name">
<div class="stop-popup-title">{{stop.name}}</div>
<div class="stop-popup-title">
{{stop.name}} ({{stop.lines.map(l => l.short_name).join(", ")}})
</div>
<pulse-loader :loading="isLoading" color="#102938" size="12px"></pulse-loader>
<div class="stop-popup-stats" v-show="!isLoading">
<div class="stop-popup-counter">Board: {{stats.board}}</div>
......
......@@ -223,7 +223,7 @@ getty.jsonGet("/stops").then(function (fc) {
});
getty.jsonGet("/lines").then(function (fc) {
lineLayer.addData(fc);
//lineLayer.addData(fc);
fc.features.map(f => f.properties).forEach(l => app.lines[l.id] = l);
app.startLines = Object.values(app.lines);
app.endLines = Object.values(app.lines);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment