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 />
|
Flight Time: <span id="cursor_pred_time"></span><br />
|
||||||
Cursor range from launch: <span id="cursor_pred_launchrange">?</span>km,
|
Cursor range from launch: <span id="cursor_pred_launchrange">?</span>km,
|
||||||
land: <span id="cursor_pred_landrange">?</span>km
|
land: <span id="cursor_pred_landrange">?</span>km
|
||||||
|
<br />
|
||||||
|
Download data: <a id="dlcsv">CSV</a> <a id="dlkml">KML</a>
|
||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<a><span id="showHideDebug">Show Debug</span></a> |
|
<a><span id="showHideDebug">Show Debug</span></a> |
|
||||||
|
|
|
@ -299,6 +299,10 @@ function parseCSV(lines) {
|
||||||
$("#cursor_pred_range").html(range);
|
$("#cursor_pred_range").html(range);
|
||||||
$("#cursor_pred_time").html(flighttime);
|
$("#cursor_pred_time").html(flighttime);
|
||||||
$("#cursor_pred").show();
|
$("#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
|
// make some nice icons
|
||||||
var launch_icon = new google.maps.MarkerImage(launch_img,
|
var launch_icon = new google.maps.MarkerImage(launch_img,
|
||||||
|
|
Ładowanie…
Reference in New Issue