Added CSV and KML download links - works
rodzic
8fd5a3bcc7
commit
a1257b7928
|
@ -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> |
|
||||
|
|
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue