From ad54ee2da0dee466effd8bd589c3f90f7d90c8f0 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 25 Aug 2023 23:42:41 +0200 Subject: [PATCH] show a bit more information in the overlay --- htdocs/map.js | 9 +++++++++ owrx/adsb/modes.py | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/htdocs/map.js b/htdocs/map.js index 76a40913..c8ae91b7 100644 --- a/htdocs/map.js +++ b/htdocs/map.js @@ -453,6 +453,15 @@ $(function(){ var title; if (marker.icao) { title = marker.identification || marker.icao; + if (marker.altitude) { + commentString += '
Altitude: ' + marker.altitude + ' ft
'; + } + if (marker.groundspeed) { + commentString += '
Speed: ' + Math.round(marker.groundspeed) + ' kt
'; + } + if (marker.verticalspeed) { + commentString += '
V/S: ' + marker.verticalspeed + ' ft/min
'; + } } else { linkifySource(source); } diff --git a/owrx/adsb/modes.py b/owrx/adsb/modes.py index 2d580c30..ca51fb45 100644 --- a/owrx/adsb/modes.py +++ b/owrx/adsb/modes.py @@ -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):