Commit 20ae6a81 authored by Kevin Abel's avatar Kevin Abel
Browse files

Use delete to ensure removed bus markers are not kept

parent a9d6c9b0
......@@ -313,7 +313,7 @@
if (value.vehicle.oos || (value.vehicle.routeID != 24 && value.vehicle.routeID != 25)) {
if (markers['buses'][value.vehicle.id]) {
markers['buses'][value.vehicle.id].setMap(null);
markers['buses'][value.vehicle.id] = null;
delete markers['buses'][value.vehicle.id];
}
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment