show a bit more information in the overlay
This commit is contained in:
parent
71eee49fe2
commit
ad54ee2da0
|
|
@ -453,6 +453,15 @@ $(function(){
|
||||||
var title;
|
var title;
|
||||||
if (marker.icao) {
|
if (marker.icao) {
|
||||||
title = marker.identification || 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 {
|
} else {
|
||||||
linkifySource(source);
|
linkifySource(source);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,17 @@ d_lat_odd = 360 / (4 * nz - 1)
|
||||||
|
|
||||||
|
|
||||||
class AirplaneLocation(LatLngLocation, IncrementalUpdate, ABC):
|
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
|
ttl = 30
|
||||||
|
|
||||||
def __init__(self, message):
|
def __init__(self, message):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue