show a bit more information in the overlay

This commit is contained in:
Jakob Ketterl 2023-08-25 23:42:41 +02:00
parent 71eee49fe2
commit ad54ee2da0
2 changed files with 20 additions and 1 deletions

View file

@ -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);
}

View file

@ -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):