var map;var pointTitle = [];var pointDetail = [];var pointInfo = [];var pointLat = [];var pointLon = [];pointTitle[0]= 'Pilot: 99999 - Home of IYP';pointDetail[0]= 'STATUS: Takeoff and Climbout
Company: It’s Your Plane - SAMPLE
ICAO: IYP IATA: IYP Pilot: 99999 Com: No
Aircraft: B744 Reg #: N747P Call Sign: 1123
Departure ICAO: CYXX Destination ICAO: KSEA
Planned Altitude: 15000 Current Altitude: 8120
Heading: 171 KIAS: 279 Ground Speed: 294
Winds: 0 Speed: 0 Fuel Weight: 64872
Position: 49.052748386190125 -122.22744941711426
Route: SEA
';pointInfo[0]= 'STATUS: Takeoff and Climbout
Company: It’s Your Plane - SAMPLE
ICAO: IYP IATA: IYP Pilot: 99999 Com: No
Aircraft: B744 Reg #: N747P Call Sign: 1123
Departure ICAO: CYXX Destination ICAO: KSEA
Planned Altitude: 15000 Current Altitude: 8120
Heading: 171 KIAS: 279 Ground Speed: 294
Winds: 0 Speed: 0 Fuel Weight: 64872
Position: 49.052748386190125 -122.22744941711426
Route: SEA
';pointLat[0]= 49.052748386190125;pointLon[0]= -122.22744941711426;m=1;pointTitle[1]= 'Pilot: 11247 - John Sanders';pointDetail[1]= 'STATUS: Takeoff and Climbout
Company: It’s Your Plane - PRIVATE
ICAO: IYP IATA: IYP Pilot: 11247 Com: None
Aircraft: A319 Reg #: AAY7124 Call Sign: 7124
Departure ICAO: GFLL Destination ICAO: DGAA
Planned Altitude: 39000 Current Altitude: 31947
Heading: 141 KIAS: 272 Ground Speed: 465
Winds: 281 Speed: 25 Fuel Weight: 37736
Position: 6.35781204224014 -10.5016428112113
Route: LGI MATRU ROB RITAM MEGOT BUSOT AD AD72 TEMBI MIMTI
';pointInfo[1]= 'STATUS: Takeoff and Climbout
Company: It’s Your Plane - PRIVATE
ICAO: IYP IATA: IYP Pilot: 11247 Com: None
Aircraft: A319 Reg #: AAY7124 Call Sign: 7124
Departure ICAO: GFLL Destination ICAO: DGAA
Planned Altitude: 39000 Current Altitude: 31947
Heading: 141 KIAS: 272 Ground Speed: 465
Winds: 281 Speed: 25 Fuel Weight: 37736
Position: 6.35781204224014 -10.5016428112113
Route: LGI MATRU ROB RITAM MEGOT BUSOT AD AD72 TEMBI MIMTI
';pointLat[1]= 6.35781204224014;pointLon[1]= -10.5016428112113;m=1;pointTitle[2]= 'Pilot: 12464 - Luis Alicea';pointDetail[2]= 'STATUS: Cruising
Company: It’s Your Plane - PRIVATE
ICAO: IYP IATA: IYP Pilot: 12464 Com: None
Aircraft: CRJ7 Reg #: NCRJ70 Call Sign: 7880
Departure ICAO: KEWR Destination ICAO: KORD
Planned Altitude: 18000 Current Altitude: 18024
Heading: 281 KIAS: 315 Ground Speed: 388
Winds: 311 Speed: 23 Fuel Weight: 8991
Position: 41.2874688751368 -86.0999250854036
Route:
';pointInfo[2]= 'STATUS: Cruising
Company: It’s Your Plane - PRIVATE
ICAO: IYP IATA: IYP Pilot: 12464 Com: None
Aircraft: CRJ7 Reg #: NCRJ70 Call Sign: 7880
Departure ICAO: KEWR Destination ICAO: KORD
Planned Altitude: 18000 Current Altitude: 18024
Heading: 281 KIAS: 315 Ground Speed: 388
Winds: 311 Speed: 23 Fuel Weight: 8991
Position: 41.2874688751368 -86.0999250854036
Route:
';pointLat[2]= 41.2874688751368;pointLon[2]= -86.0999250854036;m=1;pointTitle[3]= 'Pilot: 11339 - Mike Sabine';pointDetail[3]= 'STATUS: Taxi Checklist
Company: It’s Your Plane - PRIVATE
ICAO: IYP IATA: IYP Pilot: 11339 Com: None
Aircraft: CRJ7 Reg #: N747MS Call Sign: N747MS
Departure ICAO: KDEN Destination ICAO: KELP
Planned Altitude: 30000 Current Altitude: 5438
Heading: 176 KIAS: 0 Ground Speed: 5
Winds: 310 Speed: 9 Fuel Weight: 17661
Position: 39.8527254249366 -104.68400487878
Route: DEN SOLAR TEHEV ALS RUTER
';pointInfo[3]= 'STATUS: Taxi Checklist
Company: It’s Your Plane - PRIVATE
ICAO: IYP IATA: IYP Pilot: 11339 Com: None
Aircraft: CRJ7 Reg #: N747MS Call Sign: N747MS
Departure ICAO: KDEN Destination ICAO: KELP
Planned Altitude: 30000 Current Altitude: 5438
Heading: 176 KIAS: 0 Ground Speed: 5
Winds: 310 Speed: 9 Fuel Weight: 17661
Position: 39.8527254249366 -104.68400487878
Route: DEN SOLAR TEHEV ALS RUTER
';pointLat[3]= 39.8527254249366;pointLon[3]= -104.68400487878;m=1;pointTitle[4]= 'Pilot: 11247 - John';pointDetail[4]= 'STATUS: Takeoff and Climbout
Company: It’s Your Plane - PRIVATE
ICAO: IYP IATA: IYP Pilot: 11247 Com: None
Aircraft: A319 Reg #: AAY7124 Call Sign: 7124
Departure ICAO: GFLL Destination ICAO: DGAA
Planned Altitude: 39000 Current Altitude: 32653
Heading: 141 KIAS: 270 Ground Speed: 469
Winds: 302 Speed: 26 Fuel Weight: 37642
Position: 6.27404929215207 -10.3997473532328
Route: LGI MATRU ROB RITAM MEGOT BUSOT AD AD72 TEMBI MIMTI
';pointInfo[4]= 'STATUS: Takeoff and Climbout
Company: It’s Your Plane - PRIVATE
ICAO: IYP IATA: IYP Pilot: 11247 Com: None
Aircraft: A319 Reg #: AAY7124 Call Sign: 7124
Departure ICAO: GFLL Destination ICAO: DGAA
Planned Altitude: 39000 Current Altitude: 32653
Heading: 141 KIAS: 270 Ground Speed: 469
Winds: 302 Speed: 26 Fuel Weight: 37642
Position: 6.27404929215207 -10.3997473532328
Route: LGI MATRU ROB RITAM MEGOT BUSOT AD AD72 TEMBI MIMTI
';pointLat[4]= 6.27404929215207;pointLon[4]= -10.3997473532328;m=1;
var baseIcon = new GIcon();
baseIcon.shadow = "/res/shadow50.png";
baseIcon.iconSize = new GSize(20, 34);
baseIcon.shadowSize = new GSize(37, 34);
baseIcon.iconAnchor = new GPoint(9, 34);
baseIcon.infoWindowAnchor = new GPoint(9, 2);
baseIcon.infoShadowAnchor = new GPoint(18, 25);
mAlive=-1;
function getTheTime() {
var curtime = new Date();
var curhour = curtime.getHours();
var curmin = curtime.getMinutes();
var cursec = curtime.getSeconds();
var time = "";
if (curhour == 0)
curhour = 12;
time = (curhour > 12 ? curhour - 12 : curhour) + ":" +
(curmin < 10 ? "0" : "") + curmin + ":" +
(cursec < 10 ? "0" : "") + cursec + " " +
(curhour > 12 ? "PM" : "AM");
return time;
}
function createMarker(i, point, html) {
var marker;
var icon = new GIcon(baseIcon);
var letter = String.fromCharCode("A".charCodeAt(0) + i);
icon.image = "/res/marker" + letter + ".png";
if (false) // i == 0)
marker = new PdMarker(point);
else
marker = new PdMarker(point, icon);
if (pointTitle[i].length > 0)
marker.setTooltip(pointTitle[i]);
marker.setHoverImage("/res/dd-start.png");
marker.setCursor("help");
marker.setTitle(pointTitle[i]);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
mAlive=i;
});
GEvent.addListener(marker, "updateMarker", function(){
alert(i);
});
return marker;
}
function onPageLoad() {
map = new GMap2(document.getElementById("map"),{ size: new GSize(750,590) });
map.setCenter(new GLatLng(42.366662,-71.106262), 2);
map.setMapType(map.getMapTypes()[0]);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
for (i=0; i' + pointInfo[i]);
map.addOverlay(marker);
}
map.zoomToMarkers(5,2);
//insertVersionIntoPage();
}
function processData(i,zla,zlo,zd){
pointLat[i]=zla.toFixed(5);
pointLon[i]=zlo.toFixed(5);
pointInfo[i]=zd;
}
function insertVersionIntoPage() {
var obj = document.getElementById("pdmarkerrevisions");
if (obj)
obj.innerHTML = getPdMarkerRevisionInfo();
obj = document.getElementById("pdmarkerversion");
if (obj)
obj.innerHTML = getPdMarkerVersion() + " (Google Maps JS version: " + getGoogleMapsVersion() + ")";
}
setTimeout('refreshData()',15000)
function refreshData(){
window.frames['dataframe'].window.location.replace('iypmap2.asp');
map.clearOverlays();
//if (mAlive != -1) {
// map.setCenter(new GLatLng(pointLat[mAlive], pointLon[mAlive]), 13);
// mAlive=-1;
//}
map.addControl(new GSmallMapControl());
for (i=0; i' + pointInfo[i]);
map.addOverlay(marker);
}
setTimeout('refreshData()',15000)
}