show route 0
This commit is contained in:
parent
750a4f0505
commit
ed177817e3
2 changed files with 4 additions and 4 deletions
|
@ -18,9 +18,9 @@ let layerControl=L.control.layers().addTo(map);
|
|||
let busLayers={},busMarkers={};
|
||||
function updateMap(){
|
||||
let routes={};
|
||||
fetch("tarc.csv").then(response=>response.text()).then(data=>{
|
||||
if(data=="")return;
|
||||
data.split("\n").forEach(line=>{
|
||||
fetch("tarc.csv").then(response=>response.text()).then(csv=>{
|
||||
if(csv=="")return;
|
||||
csv.split("\n").forEach(line=>{
|
||||
let [lat,lng,r,id,p,d,s,t]=line.split(",");
|
||||
p=parseInt(p);
|
||||
t=new Date(t*1000).toLocaleTimeString("en-US",{hour12:false});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue