Added CSV and KML download links - works

pull/73/head
jonsowman 2010-06-19 14:23:33 +01:00
rodzic 8fd5a3bcc7
commit a1257b7928
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -75,6 +75,8 @@ Range: <span id="cursor_pred_range"></span>km,
Flight Time: <span id="cursor_pred_time"></span><br />
Cursor range from launch: <span id="cursor_pred_launchrange">?</span>km,
land: <span id="cursor_pred_landrange">?</span>km
<br />
Download data: <a id="dlcsv">CSV</a> <a id="dlkml">KML</a>
</span>
<br />
<a><span id="showHideDebug">Show Debug</span></a> |

Wyświetl plik

@ -299,6 +299,10 @@ function parseCSV(lines) {
$("#cursor_pred_range").html(range);
$("#cursor_pred_time").html(flighttime);
$("#cursor_pred").show();
// populate the download links
$("#dlcsv").attr("href", "preds/"+current_uuid+"/flight_path.csv");
$("#dlkml").attr("href", "kml.php?uuid="+current_uuid);
// make some nice icons
var launch_icon = new google.maps.MarkerImage(launch_img,