I use the following code into my acarsmap.js but my bigmap now is not display... just show a blankpage :(.
Any help? (I put 5 folders into inair with airline codes for each airline)
if (data[i].flightnum.substring(0,3); == "SKU"){
var pos = new google.maps.LatLng(lat, lng);
flightMarkers[flightMarkers.length] = new google.maps.Marker({
position: pos,
map: map,
icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png",
flightdetails: data[i],
infowindow_content: detailed_bubble
});
}
else if (data[i].flightnum.substring(0,3); == "IBE"){
var pos = new google.maps.LatLng(lat, lng);
flightMarkers[flightMarkers.length] = new google.maps.Marker({
position: pos,
map: map,
icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png",
flightdetails: data[i],
infowindow_content: detailed_bubble
});
}
else if (data[i].flightnum.substring(0,3); == "IBS"){
var pos = new google.maps.LatLng(lat, lng);
flightMarkers[flightMarkers.length] = new google.maps.Marker({
position: pos,
map: map,
icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png",
flightdetails: data[i],
infowindow_content: detailed_bubble
});
}
else if (data[i].flightnum.substring(0,3); == "DAL"){
var pos = new google.maps.LatLng(lat, lng);
flightMarkers[flightMarkers.length] = new google.maps.Marker({
position: pos,
map: map,
icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png",
flightdetails: data[i],
infowindow_content: detailed_bubble
});
}
else if (data[i].flightnum.substring(0,3); == "SKC"){
var pos = new google.maps.LatLng(lat, lng);
flightMarkers[flightMarkers.length] = new google.maps.Marker({
position: pos,
map: map,
icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png",
flightdetails: data[i],
infowindow_content: detailed_bubble
});
}
Thanks!