1
0
Fork 0

Possibly fix lines

merge-requests/1/head
wgaylord 2018-12-22 01:39:50 -06:00
parent c5e531facb
commit ef9ca1e336
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ function UpdateMap(e) {
if (temp.includes(Number(y))){
Lines[norad][y]._latlngs[1]= {"lat":satPos[0],"lng":satPos[1]}
}else{
Lines[norad][x[0]].removeFrom(mymap)
delete Lines[norad][x[0]]
Lines[norad][y].removeFrom(mymap)
delete Lines[norad][y]
}
})}else{Lines[norad][x[0]] = new L.Polyline([[Stations[x[0]]._latlng.lat,Stations[x[0]]._latlng.lng],[satPos[0],satPos[1]]], {color: x[1],weight: 3,opacity: 1,smoothFactor: 1});