mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
show a bit more information in the overlay
This commit is contained in:
parent
71eee49fe2
commit
ad54ee2da0
|
|
@ -453,6 +453,15 @@ $(function(){
|
|||
var title;
|
||||
if (marker.icao) {
|
||||
title = marker.identification || marker.icao;
|
||||
if (marker.altitude) {
|
||||
commentString += '<div>Altitude: ' + marker.altitude + ' ft</div>';
|
||||
}
|
||||
if (marker.groundspeed) {
|
||||
commentString += '<div>Speed: ' + Math.round(marker.groundspeed) + ' kt</div>';
|
||||
}
|
||||
if (marker.verticalspeed) {
|
||||
commentString += '<div>V/S: ' + marker.verticalspeed + ' ft/min</div>';
|
||||
}
|
||||
} else {
|
||||
linkifySource(source);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,17 @@ d_lat_odd = 360 / (4 * nz - 1)
|
|||
|
||||
|
||||
class AirplaneLocation(LatLngLocation, IncrementalUpdate, ABC):
|
||||
mapKeys = ['icao', 'lat', 'lon', 'altitude', 'heading', 'groundtrack', 'identification']
|
||||
mapKeys = [
|
||||
"icao",
|
||||
"lat",
|
||||
"lon",
|
||||
"altitude",
|
||||
"heading",
|
||||
"groundtrack",
|
||||
"groundspeed",
|
||||
"verticalspeed",
|
||||
"identification",
|
||||
]
|
||||
ttl = 30
|
||||
|
||||
def __init__(self, message):
|
||||
|
|
|
|||
Loading…
Reference in a new issue