dataarts / webgl-globe

WebGL Globe is a platform for visualizing latitude longitude based information using WebGL.
https://experiments.withgoogle.com/chrome/globe
Other
3.59k stars 1.15k forks source link

Points are incorrectly positioned on map #29

Open codefrenzy opened 9 years ago

codefrenzy commented 9 years ago

Hi again,

Apologies for adding another issue, but I'm seeing some strange behaviour. I am plotting this data:

[["departure",[52.3,4.76666666666667,1.0,1.36666666666667,103.983333333333,0.0]],["arrival",[1.36666666666667,103.983333333333,1.0,52.3,4.76666666666667,0.0]]]

This should result in 2 series; the first represents departures where the first point is Amsterdam and the second point (which is set to magnitude = 0) is Singapore. The second series are arrivals where the first point is Singapore and the second point (which also has magnitude set to 0) is Amsterdam.

If I try to each series independently, by hovering over some text, only the first point is drawn in the correct position. So in this case, when the globe first renders it renders departures, focusing on Amsterdam which is drawn in the right place. When I mouse-over arrivals though, Singapore is not drawn in the right place. I find the same happens if I reverse the order of the series so arrivals are first - then Singapore is rendered in the right place and Amsterdam isn't.

What could be the problem? The data seems ok to me?

When Singapore is rendered first, this is where Singapore is rendered (correct): image

When Singapore is rendered second (on mouse-over), this is where Singapore is rendered (incorrect): image

Both of the maps above are using the same coordinates for Singapore (see data above).

Appreciate any help.

Cheers, Annie