From GamingWiki
Jump to: navigation, search
Line 261: Line 261:
 
];
 
];
 
var corners = new google.maps.MVCArray();
 
var corners = new google.maps.MVCArray();
 +
var count = 0;
 
for (var pair in coords) {
 
for (var pair in coords) {
corners.push(new google.maps.LatLng(pair[1],pair[0]));
+
count += corners.push(new google.maps.LatLng(pair[1],pair[0]));
 
}
 
}
 +
console.log("Added "+count+" LatLngs");
 
addPath(corners,'','');
 
addPath(corners,'','');
 
}
 
}

Revision as of 17:04, 10 August 2011