Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Inverted coordinates returned on click on scattergeo? #1816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
collioud opened this issue Jun 24, 2017 · 1 comment · Fixed by #1819
Closed

Inverted coordinates returned on click on scattergeo? #1816

collioud opened this issue Jun 24, 2017 · 1 comment · Fixed by #1819
Labels
bug something broken

Comments

@collioud
Copy link

Hi,

When clicking on a point on a scattergeo plot, the lat/lon returned values seem to be inverted.
See https://codepen.io/anon/pen/VWzOXq?editors=0010
Try to click on a point to add 2 traces: the red one corresponds to lat set to lat_clicked_pt and lon to lon_clicked_pt ; the green one is when lon and lat are inverted.
Obviously, the green one is expected...

@etpinard
Copy link
Contributor

Nice catch! Yep, you're right. These lines should be:

pointData.lon = lonlat[0];
pointData.lat = lonlat[1];

@etpinard etpinard added the bug something broken label Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants