tracker_canvas_context.beginPath();
for (footprint_point = 0; footprint_point < 360; footprint_point++){
footprint_x_pos = Math.round((retroTrack.footprint[footprint_point].lon + 180)/360*tracker_canvas_width);
footprint_y_pos = Math.round((180-(retroTrack.footprint[footprint_point].lat+90))/180*tracker_canvas_height);
tracker_canvas_context.lineTo(footprint_x_pos, footprint_y_pos);
tracker_canvas_context.moveTo(footprint_x_pos, footprint_y_pos);
}
tracker_canvas_context.closePath();
tracker_canvas_context.lineWidth = 1;
tracker_canvas_context.fillStyle = "red";
tracker_canvas_context.fill();
tracker_canvas_context.strokeStyle = "blue";
tracker_canvas_context.stroke();
dHJhY2tlcl9jYW52YXNfY29udGV4dC5iZWdpblBhdGgoKTsKZm9yIChmb290cHJpbnRfcG9pbnQgPSAwOyBmb290cHJpbnRfcG9pbnQgPCAzNjA7IGZvb3RwcmludF9wb2ludCsrKXsKICAgIGZvb3RwcmludF94X3BvcyA9IE1hdGgucm91bmQoKHJldHJvVHJhY2suZm9vdHByaW50W2Zvb3RwcmludF9wb2ludF0ubG9uICsgMTgwKS8zNjAqdHJhY2tlcl9jYW52YXNfd2lkdGgpOwogICAgZm9vdHByaW50X3lfcG9zID0gTWF0aC5yb3VuZCgoMTgwLShyZXRyb1RyYWNrLmZvb3RwcmludFtmb290cHJpbnRfcG9pbnRdLmxhdCs5MCkpLzE4MCp0cmFja2VyX2NhbnZhc19oZWlnaHQpOwoKICAgIHRyYWNrZXJfY2FudmFzX2NvbnRleHQubGluZVRvKGZvb3RwcmludF94X3BvcywgZm9vdHByaW50X3lfcG9zKTsKICAgIHRyYWNrZXJfY2FudmFzX2NvbnRleHQubW92ZVRvKGZvb3RwcmludF94X3BvcywgZm9vdHByaW50X3lfcG9zKTsKfQoKdHJhY2tlcl9jYW52YXNfY29udGV4dC5jbG9zZVBhdGgoKTsKCnRyYWNrZXJfY2FudmFzX2NvbnRleHQubGluZVdpZHRoID0gMTsKdHJhY2tlcl9jYW52YXNfY29udGV4dC5maWxsU3R5bGUgPSAicmVkIjsKdHJhY2tlcl9jYW52YXNfY29udGV4dC5maWxsKCk7CnRyYWNrZXJfY2FudmFzX2NvbnRleHQuc3Ryb2tlU3R5bGUgPSAiYmx1ZSI7CnRyYWNrZXJfY2FudmFzX2NvbnRleHQuc3Ryb2tlKCk7