We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6096bbd commit ec6b0ccCopy full SHA for ec6b0cc
js/tracker.js
@@ -1445,8 +1445,8 @@ function addPosition(position) {
1445
// add the new position
1446
if(wvar.latestonly) {
1447
vehicle.num_positions= 1;
1448
- vehicle.positions.push(new_latlng);
1449
- vehicle.positions_ts.push(new_ts);
+ vehicle.positions[0] = new_latlng;
+ vehicle.positions_ts[0] = new_ts;
1450
} else {
1451
vehicle.positions.push(new_latlng);
1452
vehicle.positions_ts.push(new_ts);
0 commit comments