Page 1 of 1

UK 0 Longitude rounding problem?

Posted: Sat Nov 24, 2018 4:47 pm
by Harters
Hi,

I live in the UK and notice that the feed from ADSBHub exibits rather strange behaviour. If I watch an aircraft move, say, from the West when it reaches -1.0 longitude it is instantly translated to 0 longitude (the same happens when less than 1.0 longitude). Is this a problem with Virtual Radar, because if I look at the London participants on ADSBHub's map plot they do not collapse onto 0 longitude but look quite sensible?

Thanks,

Harters

Re: UK 0 Longitude rounding problem?

Posted: Tue Dec 11, 2018 3:31 am
by UA4WIY
Create 180 degrees also works incorrectly, the video shows what's wrong.
https://youtu.be/qHWvwfSIlDo

Image

Re: UK 0 Longitude rounding problem?

Posted: Sat Dec 22, 2018 10:57 am
by Lector
Same for any objects with W-longitude put on map.
Image

Re: UK 0 Longitude rounding problem?

Posted: Sun Dec 23, 2018 10:09 am
by UA4WIY
Lector wrote:
Sat Dec 22, 2018 10:57 am
Same for any objects with W-longitude put on map.
Image
https://leafletjs.com/reference-1.3.4.html#Methods

Code: Select all

 wrap()

Re: UK 0 Longitude rounding problem?

Posted: Sat Dec 29, 2018 3:20 pm
by agw
UA4WIY wrote:
Sun Dec 23, 2018 10:09 am

Code: Select all

 wrap()
Replies don't get more succinct than that :) But thanks for that, I hadn't noticed the wrap methods before. I'll give them a go and see if they can help with the longitude issues with Leaflet.