Commit 8bf69102 authored by dagal's avatar dagal
Browse files

Display basic lines

parent 17302ec1
......@@ -138,6 +138,10 @@ let stopLayer = L.geoJSON(null, {
}
}).addTo(map);
let lineLayer = L.geoJSON(null, {
// TODO
}).addTo(map);
map.on("contextmenu.show", (e) => {
if (e.sourceTarget && e.sourceTarget.setStyle) {
app.contextStop = e.sourceTarget.feature;
......@@ -166,6 +170,9 @@ getty.jsonGet("/stops").then(function (fc) {
});
});
getty.jsonGet("/lines").then(function (fc) {
//lineLayer.addData(fc);
});
getty.jsonGet("/time").then(function (timeRange) {
app.minDate = new Date(timeRange.start);
......
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