alkissack / Dump1090-OpenLayers-html

Modifications to the Openlayers html files (part of the dump1090-fa branch)
GNU General Public License v2.0
44 stars 20 forks source link

ICAO Type #3

Closed kevdel closed 5 years ago

kevdel commented 5 years ago

for a selected aircraft the infoblock will show the correct aircraft type. i.e. the span "selected_icaotype" is correct

However, the mouseover on the aircraft icon in the map will show "unknown aircraft" and the name column in the table is empty.

any thoughts on what can be done to get the aircraft type consistent across the 3 areas?

alkissack commented 5 years ago

Kev

can you show me an example... [image: image.png]

Al

kevdel commented 5 years ago

Here's a screen shot of the issue with 3 red/pink arrows pointing to the areas i referenced above

https://imgur.com/a/v9Lwear

I'm using the latest version dump1090-fa software if that makes any difference

kevdel commented 5 years ago

ok.. some digging fixed it

to fix the mousover lack of aircraft type I changed the following in script.js replace popname = (Planes[feature.hex].ac_aircraft ? Planes[feature.hex].ac_aircraft : 'Unknown aircraft type' );

with popname = (Planes[feature.hex].icaotype ? Planes[feature.hex].icaotype : 'Unknown aircraft type' );

alkissack commented 5 years ago

Thanks. I'll get that sorted

kevdel commented 5 years ago

updated the source and checked and it looks good