rem: /* this.marker = new gmap_element(fgmap.gmap, this.latlng, new GPoint(-(pi_anchor.x), -(pi_anchor.y)), this.icon_elem); */ 
context: function FGPilot(fgmap, callsign, lat, lng, alt, model, server_ip) {    this.fgmap = fgmap;    this.callsign = callsign;    this.server_ip = server_ip;    this.model = model;    if(isNaN(lng))        lng = 0;    if(isNaN(lat))        lat = 0;    this.latlng = new GLatLng(lat, lng);    this.hdg = "N/A";    this.last_disp_hdg = -1;    // Seems to be FGFS starting alt    if(alt == -9999) {        alt = 0;    }    this.alt = alt;    this.last_alt = alt;    this.spd = "N/A";    this.last_spd = "N/A";    /* Arrays of GPolyline */    this.polylines = new Array();    /* Arrays of GLatLng for the polyline */    this.trails = [ this.latlng ];    var elem, span;    // info box div    elem = this.info_elem = element_create(null, "div");    elem.className = "fgmap_pilot_info";    elem.style.zIndex = FGMAP_PILOT_INFO_ZINDEX;    //element_opacity_set(elem, 0.65);    this.info = new GMapElement(this.latlng,                                new GPoint(20, 15),                                this.info_elem);    fgmap.gmap.addOverlay(this.info);    // TODO    element_opacity_set(this.info.elem, 0.65);    // callsign    span = element_create(elem, "span");    span.className = "fgmap_pilot_info_callsign";    span.innerHTML = callsign;    // lat/lng    element_text_append(elem, " (");    span = element_create(elem, "span");    span.className = "fgmap_pilot_info_model";    span.innerHTML = model; // TODO: one day when FG can switch craft    element_text_append(elem, ")");    element_create(elem, "br");    // alt    span = this.alt_elem = element_create(elem, "span");    span.className = "fgmap_pilot_info_alt";    span.innerHTML = this.alt.toFixed(0);    span = element_create(elem, "span");    span.className = "fgmap_pilot_info_alt";    span.innerHTML = "ft";    // alt trend    span = this.alt_trend_elem = element_create(elem, "span");    span.className = "fgmap_pilot_info_alt";    element_hide(span);    element_text_append(elem, "\u00a0\u00a0\u00a0");    // hdg    span = this.hdg_elem = element_create(elem, "span");    span.className = "fgmap_pilot_info_hdg";    span.innerHTML = this.hdg;    span = this.hdg_unit = element_create(elem, "span");    span.className = "fgmap_pilot_info_hdg";    span.innerHTML = "\u00b0";    element_hide(span);    element_create(elem, "br");    // spd    span = this.spd_elem = element_create(elem, "span");    span.className = "fgmap_pilot_info_spd";    span.innerHTML = this.spd;    span = this.spd_unit = element_create(elem, "span");    span.className = "fgmap_pilot_info_spd";    span.innerHTML = "kts";    element_hide(span);    // spd trend    span = this.spd_trend_elem = element_create(elem, "span");    span.className = "fgmap_pilot_info_spd";    element_hide(span);    /* pilot icon */    elem = this.icon_elem = element_create(null, "img");    elem.className = "fgmap_pilot_icon";    elem.style.zIndex = FGMAP_CRAFT_ICON_ZINDEX;    attach_event(elem, "mouseover",        this.marker_mouse_event_cb.bind_event(this));    attach_event(elem, "mouseout",        this.marker_mouse_event_cb.bind_event(this));    /*    this.marker = new gmap_element(fgmap.gmap, this.latlng,                                    new GPoint(-(pi_anchor.x), -(pi_anchor.y)),                                    this.icon_elem);    */    this.marker = new GMapElement(this.latlng,                                    new GPoint(-(pi_anchor.x), -(pi_anchor.y)),                                    this.icon_elem);    fgmap.gmap.addOverlay(this.marker);    this.marker_update(true);}
meta: 2874	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2874/f44124eff631c86a032f5650f0306fcebf78e430/fgmap.js/buggy/fgmap.js