diff --git a/htdocs/lib/MapMarkers.js b/htdocs/lib/MapMarkers.js
index 909ab6f9..79e613b8 100644
--- a/htdocs/lib/MapMarkers.js
+++ b/htdocs/lib/MapMarkers.js
@@ -817,17 +817,18 @@ AircraftMarker.prototype.getInfoHTML = function(name, receiverMarker = null) {
distance = ' at ' + Marker.distanceKm(receiverMarker.position, this.position) + ' km';
}
- // Linkify title based on what it is (vessel, flight, mode-S code, or else)
- var url = modes_url;
- if (this.flight) {
+ // Linkify title based on what it is (flight, aircraft, ICAO code)
+ var text = this.flight? this.flight : this.aircraft? this.aircraft : name;
+ var url = modes_url;
+ if (this.flight && this.flight.match(/^[A-Z]{3}[0-9]+[A-Z]*$/)) {
name = this.flight;
- url = this.flight.match(/^[A-Z]{3}[0-9]+[A-Z]*$/)? flight_url : null;
- } else if (this.aircraft) {
+ url = flight_url;
+ } else if(this.aircraft) {
name = this.aircraft;
url = flight_url;
}
- return '
' + Marker.linkify(name, url) + distance + '
'
+ return '' + Marker.linkify(text, url, name) + distance + '
'
+ '' + timeString + ' using ' + this.mode + '
'
+ commentString + detailsString + messageString;
};
diff --git a/htdocs/map-leaflet.js b/htdocs/map-leaflet.js
index 1c79f4e8..dedf8b77 100644
--- a/htdocs/map-leaflet.js
+++ b/htdocs/map-leaflet.js
@@ -401,12 +401,6 @@ MapManager.prototype.processUpdates = function(updates) {
case 'latlon':
var marker = self.mman.find(update.callsign);
- if (update.location.symbol) {
- options.symbol = update.location.symbol;
- options.course = update.location.course;
- options.speed = update.location.speed;
- }
-
// If new item, create a new marker for it
if (!marker) {
switch(update.mode) {
diff --git a/owrx/aircraft.py b/owrx/aircraft.py
index 9c03629a..4d291941 100644
--- a/owrx/aircraft.py
+++ b/owrx/aircraft.py
@@ -484,7 +484,7 @@ class Vdl2Parser(AircraftParser):
out["lon"] = p["value"]["loc"]["lon"]
# Ignore dummy altitude value
alt = p["value"]["alt"]
- if alt < 255000:
+ if alt < 192000:
# Convert altitude from feet into meters
out["altitude"] = round(alt)
elif p["name"] == "dst_airport":
diff --git a/owrx/service/__init__.py b/owrx/service/__init__.py
index 7da30c3d..9197efbe 100644
--- a/owrx/service/__init__.py
+++ b/owrx/service/__init__.py
@@ -341,8 +341,7 @@ class ServiceHandler(SdrSourceEventClient):
return AcarsDemodulator(service=True)
elif mod == "adsb":
from csdr.chain.toolbox import AdsbDemodulator
-# return AdsbDemodulator(service=True)
- return AdsbDemodulator(service=True, jsonFile="/tmp/dump1090/aircraft.json")
+ return AdsbDemodulator(service=True)
raise ValueError("unsupported service modulation: {}".format(mod))