Skip to content

Commit 1504259

Browse files
fixed bug redrawing alt profile multiple times
1 parent ee8a56f commit 1504259

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

js/tracker.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,23 +1374,11 @@ function update(response) {
13741374
updateVehicleInfo(idx, vehicles[idx].curr_position);
13751375

13761376
if(listScroll) listScroll.refresh();
1377-
1378-
// update the altitude profile, only if its a balloon
1379-
if(vehicles[idx].vehicle_type != "car") {
1380-
var c = $('.vehicle'+idx+' .graph');
1381-
drawAltitudeProfile(c.get(0), c.get(1), vehicles[idx].alt_list, vehicles[idx].alt_max);
1382-
}
13831377
}, 400*i);
13841378
} else {
13851379
updatePolyline(i);
13861380
updateVehicleInfo(i, vehicles[i].curr_position);
13871381

1388-
// update the altitude profile, only if its a balloon
1389-
if(vehicles[i].vehicle_type != "car") {
1390-
var c = $('.vehicle'+idx+' .graph');
1391-
drawAltitudeProfile(c.get(0), c.get(1), vehicles[idx].alt_list, vehicles[idx].alt_max);
1392-
}
1393-
13941382
// remember last position for each vehicle
13951383
lastPPointer.push(vehicles[i].curr_position);
13961384
}

0 commit comments

Comments
 (0)