This commit is contained in:
Florian (DF2ET) 2025-01-29 16:48:36 +01:00 committed by GitHub
commit 552f62304f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -228,6 +228,11 @@
<?php echo round($station->latestConfirmedLatitude, 5); ?>, <?php echo round($station->latestConfirmedLongitude, 5); ?>
</div>
</div>
<div>
<div class="overview-content-summary-hr-indent">Gridsquare:</div>
<div id="overview-content-latest-gridsquare" class="overview-content-summary-cell-position" title="Maidenhead gridsquare (calculated from position)">
</div>
</div>
<div>
<div class="overview-content-summary-hr-indent">Receive Time:</div>
@ -535,6 +540,8 @@
$('#latest-timestamp-age').html(moment(new Date(1000 * $('#latest-timestamp-age').html())).locale('en').fromNow());
}
$('#overview-content-latest-gridsquare').html(trackdirect.models.Map.prototype._getMaidenheadLocatorFromGpsDecimal(<?php echo $station->latestConfirmedLatitude ?>, <?php echo $station->latestConfirmedLongitude ?>));
if (window.trackdirect) {
<?php if ($station->latestConfirmedLatitude != null && $station->latestConfirmedLongitude != null) : ?>
window.trackdirect.addListener("map-created", function() {