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