Skip to content
Snippets Groups Projects
Commit 20ae6a81 authored by Kevin Abel's avatar Kevin Abel
Browse files

Use delete to ensure removed bus markers are not kept

parent a9d6c9b0
Branches
No related tags found
No related merge requests found
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
if (value.vehicle.oos || (value.vehicle.routeID != 24 && value.vehicle.routeID != 25)) { if (value.vehicle.oos || (value.vehicle.routeID != 24 && value.vehicle.routeID != 25)) {
if (markers['buses'][value.vehicle.id]) { if (markers['buses'][value.vehicle.id]) {
markers['buses'][value.vehicle.id].setMap(null); markers['buses'][value.vehicle.id].setMap(null);
markers['buses'][value.vehicle.id] = null; delete markers['buses'][value.vehicle.id];
} }
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment