It iterates through the array called mkArray, all items except for the first (1 to length-1).
I'll have a look at your code.
Posted: May 5th, 2013, 04:27 PM
Okay, so I had a look at your code... Didn't get it at first, ah ah.
for (var i = 1, j = mkArray.length - 2; i < j; i++)
mkArray[i].setMap(null);
This should work, as I tested it in the console... If it doesn't, it means your code can't execute while loading, so you'll have to load it inside an onload event, or something.
e.g., document.body.onload = function () { ... }