ok so the issues im having it trying to get an array of latlng's to plot as polly lines
there are about 72 lines in this array i need to plot but im having issues i know it needs to loop somewhere but unsure where im still new to google maps and javascript so any help would be amazing
so here is the section im having issues with
// polylines
var one;
//pull out the line id's from top array
for (one in top)
{
//document.write("one = " + one + "<br />");
//get the mid arrays
two = top[one];
//document.write("two = " + two + "<br />");
for (var a = 0; a < two.length; a++)
{
//get the lat & lon from the mid array
var cords = two[a];
//document.write("cords = " + cords+ "<br />");
var allpaths = [new google.maps.LatLng(cords)];
var point = new google.maps.Polyline({
path:allpaths,
strokeColor: "#FF0000",
strokeOpacity: 1.0,
strokeWeight: 2
});
point.setMap(map);
}
}
here is a link to where it is live if that helps
its line 277 -338
please note that this is for a uni project and im learning as i go