mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Jump from Flightpath at passes direct to map
This commit is contained in:
@@ -186,7 +186,7 @@ class Satellite extends CI_Controller {
|
||||
echo json_encode($sat_list, JSON_FORCE_OBJECT);
|
||||
}
|
||||
|
||||
public function flightpath() {
|
||||
public function flightpath($sat = null) {
|
||||
|
||||
$this->load->model('satellite_model');
|
||||
$this->load->model('stations');
|
||||
@@ -206,11 +206,11 @@ class Satellite extends CI_Controller {
|
||||
|
||||
$this->load->library('Qra');
|
||||
$pageData['latlng'] = $this->qra->qra2latlong($homegrid[0]);
|
||||
|
||||
$data['selsat']=strtoupper($sat ?? '');
|
||||
// Render Page
|
||||
$pageData['page_title'] = "Satellite Flightpath";
|
||||
$this->load->view('interface_assets/header', $pageData);
|
||||
$this->load->view('satellite/flightpath');
|
||||
$this->load->view('satellite/flightpath',$data);
|
||||
$this->load->view('interface_assets/footer', $footerData);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,11 +38,14 @@
|
||||
<label class="my-1 me-2" id="satslabel" for="distplot_sats"><?= __("Satellite"); ?></label>
|
||||
<select class="form-select my-1 me-sm-2 w-auto" id="sats">
|
||||
<?php foreach($satellites as $sat) {
|
||||
echo '<option value="' . $sat->satname . '"' . '>' . $sat->satname . '</option>'."\n";
|
||||
echo '<option value="' . $sat->satname . '"';
|
||||
if ($sat->satname == ($selsat ?? '')) { echo ' selected'; }
|
||||
echo '>' . $sat->satname . '</option>'."\n";
|
||||
} ?>
|
||||
</select>
|
||||
|
||||
|
||||
<input type="hidden" id="selsat" value="<?php echo ($selsat ?? ''); ?>">
|
||||
<button id="plot" type="button" name="plot" class="btn btn-primary me-1 ld-ext-right ld-ext-right-plot" onclick="plot_sat()"><?= __("Plot"); ?><div class="ld ld-ring ld-spin"></div></button><p id="az"></p> <p id="ele"></p>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ if (isset($filtered)) {
|
||||
echo '<td>' . Predict_Time::daynum2readable($pass->visible_aos, $zone, $format) . '<span style="margin-left: 10px; display: inline-block;"><a href="' . $ics.'" target="newics"><i class="fas fa-calendar-plus"></i></a><span></td>';
|
||||
echo '<td>' . Predict_Time::daynum2readable($pass->visible_los, $zone, $format) . '</td>';
|
||||
echo '<td>' . returntimediff(Predict_Time::daynum2readable($pass->visible_aos, $zone, $format), Predict_Time::daynum2readable($pass->visible_los, $zone, $format), $format) . '</td>';
|
||||
echo '<td style="white-space: nowrap;"><span style="margin-left: 10px; display: inline-block; transform: rotate('.(-45+$aos_az).'deg);"><i class="fas fa-location-arrow fa-xs"></i></span><span style="margin-left: 10px;"><i class="fas fa-mound fa-xs"></i></span><span style="margin-left: 10px; display: inline-block; transform: rotate('.(-45+$los_az).'deg);"><i class="fas fa-location-arrow fa-xs"></i></span></td>';
|
||||
echo '<td style="white-space: nowrap;"><a href="flightpath/'.$pass->satname.'"><span style="margin-left: 10px; display: inline-block; transform: rotate('.(-45+$aos_az).'deg);"><i class="fas fa-location-arrow fa-xs"></i></span><span style="margin-left: 10px;"><i class="fas fa-mound fa-xs"></i></span><span style="margin-left: 10px; display: inline-block; transform: rotate('.(-45+$los_az).'deg);"><i class="fas fa-location-arrow fa-xs"></i></span></a></td>';
|
||||
echo '<td>' . $max_el . ' °<span style="margin-left: 10px; display: inline-block; transform: rotate(-'.$max_el.'deg);"><i class="fas fa-arrow-right fa-xs"></i></span></td>';
|
||||
echo '<td>' . $aos_az . ' ° (' . azDegreesToDirection($pass->visible_aos_az) . ')<span style="margin-left: 10px; display: inline-block; transform: rotate('.(-45+$aos_az).'deg);"><i class="fas fa-location-arrow fa-xs"></i></span></td>';
|
||||
echo '<td>' . $los_az . ' ° (' . azDegreesToDirection($pass->visible_los_az) . ')<span style="margin-left: 10px; display: inline-block; transform: rotate('.(-45+$los_az).'deg);"><i class="fas fa-location-arrow fa-xs"></i></span></td>';
|
||||
|
||||
@@ -514,3 +514,9 @@ function toggleGridsquares(bool) {
|
||||
maidenhead.addTo(leafletMap);
|
||||
}
|
||||
};
|
||||
|
||||
$( document ).ready(function() {
|
||||
if ($("#selsat").val() != '') {
|
||||
plot_sat();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user