kopia lustrzana https://github.com/projecthorus/chasemapper
Add geo link to dialog box.
rodzic
a860eaec35
commit
ddb605611a
|
@ -95,6 +95,11 @@ function telemetryTableDialog(e, row){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add the last position to the dialog box, and create it as a geo link.
|
||||||
|
var _last_pos = balloon_positions[callsign].latest_data.position;
|
||||||
|
$('#telemDialogPosition').html("<a href='geo:" + _last_pos[0].toFixed(5) + "," + _last_pos[1].toFixed(5) + "'>" + _last_pos[0].toFixed(5) + ", " + _last_pos[1].toFixed(5) + "</a>");
|
||||||
|
|
||||||
|
|
||||||
var _buttons = {
|
var _buttons = {
|
||||||
"Follow": function() {
|
"Follow": function() {
|
||||||
// Follow the currently selected callsign.
|
// Follow the currently selected callsign.
|
||||||
|
|
|
@ -588,7 +588,12 @@
|
||||||
|
|
||||||
<!-- Dialog boxes. These are activated from the telemetry table - see tables.js -->
|
<!-- Dialog boxes. These are activated from the telemetry table - see tables.js -->
|
||||||
<div id="telemetry-select-dialog" title="Payload Selection" style='display:none;'>
|
<div id="telemetry-select-dialog" title="Payload Selection" style='display:none;'>
|
||||||
Select action:
|
<div class="paramRow">
|
||||||
|
<b>Current Position:</b> <div style='float:right;' id='telemDialogPosition'></div><br/>
|
||||||
|
</div>
|
||||||
|
<div class="paramRow">
|
||||||
|
<b>Select Action:</b><br/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="mark-recovered-dialog" title="Mark Payload Recovered" style='display:none;'>
|
<div id="mark-recovered-dialog" title="Mark Payload Recovered" style='display:none;'>
|
||||||
|
|
Ładowanie…
Reference in New Issue