ADSB updates
This commit is contained in:
@@ -248,7 +248,7 @@ export class AirTrafficLayer {
|
||||
|
||||
private async _fetch() {
|
||||
const j = await fetch(`${API}/adsb`).then(r => r.json())
|
||||
this.data = (j.data || []).map((a: any) => ({
|
||||
this.data = (j || []).map((a: any) => ({
|
||||
...a,
|
||||
icao: a.hex,
|
||||
latitude: a.lat,
|
||||
|
||||
Reference in New Issue
Block a user