replace caret with arrow img for heading
This commit is contained in:
parent
d104b16fc2
commit
d98fd325df
2 changed files with 3 additions and 3 deletions
|
@ -35,13 +35,13 @@ function updateMap(){
|
|||
let routes={};
|
||||
fetch("tarc.csv").then(response=>response.text()).then(csv=>{
|
||||
csv.split("\n").forEach(line=>{
|
||||
let [lat,lng,r,id,h,dir,dest,s,t]=line.split(",");
|
||||
let [lat,lng,r,id,dest,h,s,dir,t]=line.split(",");
|
||||
t=new Date(t*1000).toLocaleTimeString("en-US",{hour12:false});
|
||||
if(!busLayers[r]){busLayers[r]=L.layerGroup().addTo(map)}
|
||||
if(!busMarkers[id]){busMarkers[id]=L.marker([0,0],{icon:busIcon}).on('click',()=>filterRoutes(r)).addTo(busLayers[r])}
|
||||
if(!routes[r]){routes[r]=0}
|
||||
routes[r]++;
|
||||
busMarkers[id].setLatLng([lat,lng]).bindPopup(`<b>Route ${r}</b><br>#${id} <span style="transform:rotate(${h}deg);display:inline-block;">^</span><br>${dir}<br>${dest}<br>${s}mph<br>${t}`)
|
||||
busMarkers[id].setLatLng([lat,lng]).bindPopup(`<b>Route ${r}</b> (#${id})<br>${dest}<br><span style="transform:rotate(${h}deg);display:inline-block;"><img src="/static/fontawesome/svgs/solid/arrow-up.svg" width=16 height=16></span> ${s}mph<br>${dir}<br>${t}`)
|
||||
})
|
||||
let overlayLayers={};
|
||||
for(let r in routes){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue