KOKAProduktion / littlenavmap-openlayers

OpenLayers implementation of the albar965/littlenavmap web service
GNU General Public License v3.0
5 stars 4 forks source link

Crash/blank page upon sim data retrieval : LNM 2.7.8.develop aircraft progress coordinates display turned off by default #2

Closed KOKAProduktion closed 3 months ago

KOKAProduktion commented 2 years ago

However i've found another issue while testing this prototype with the latest LNM version:

Aircraft progress coordinates display appears to be turned off by default since LNM 2.7.8 causing the OL prototype to crash as soon as sim data is coming in.

To fix this I had to check on "Coordinates" at Tools -> Progress Display Options:

Screenshot (173)

Screenshot (174)

Hope this helps too... :)

Cheers!

Originally posted by @KOKAProduktion in https://github.com/KOKAProduktion/msfs2020-littlenavmap-openlayers/issues/1#issuecomment-1045686608

albar965 commented 2 years ago

Fixed with albar965/littlenavmap@fdce0516e37301dec0debe27f0fe5769bf6a0a22 There is now a separate bitset for the web interface which has certain features like the coordinates always enabled. Alex

KOKAProduktion commented 2 years ago

Hi @albar965,

wow cool, thx for the rapid fix! Sorry, I didn't mean to bother you with this, as i didn't see it as a bug on LNM side... That's just an issue for me :) I'll have to check coords parsing on my side and probably display a hint message instead of crashing.

Nevertheless, thanks and cheers!

KOKAProduktion commented 2 years ago

Also this will become obsolete by introducing #1

albar965 commented 2 years ago

Ahh. Stupid me. Thought it was assigned to me. I can revert the change if you want. :smile:

KOKAProduktion commented 2 years ago

No, you don't have to, since this workaround-retrieval becomes obsolete with the API anyway... Thanks!

albar965 commented 2 years ago

Right. I'm wondering anyway how you deal with the different coordinate formats which can be selected in LNM options. JSON/REST API will simplify things a lot, I suppose.

KOKAProduktion commented 2 years ago

...how you deal with the different coordinate formats...

I don't :) I just assumed the DMS string format ("deg min sec dir, deg min sec dir") in progress_doc.html is constant until i've found out it's configureable via LNM settings. So it just "crashes" atm when no or another format is provided.