-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
scattermapbox: Latitude and Longitude are displayed in the incorrect order #5472
Comments
Seems clear enough, thanks for the clear and well-supported issue! @archmoj @alexcjohnson since we're doing 2.0 anyway, let's just change the default here. |
cc: #5395 |
Makes sense to me - we probably just copied over the (x, y) convention from 2D cartesian but maps do seem consistent in putting lat first. In fact, why don't we do away with the signs and use cardinal directions - that seems like the clearest of all. So instead of:
we would have:
I notice that the Representation_at_the_human_interface section (along with preferring cardinals) suggests sexagesimal (degrees, minutes, seconds) is preferred. But for our purposes I think decimal is better, if for no other reason than the source data is in decimal and it's important to be able to look at a data point and go back and find it in the source. We may have a challenge extending N/S/E/W to |
Note this applies to both mapbox and geo subplots |
I agree that cardinal directions would be better, but for now let's just switch the order in the default hoverlabel. I'm fine with tweaking the actual formatting later :) |
Sounds good, let's just leave this issue open (perhaps with an updated title) until we add cardinal directions. |
Thank you very much for the prompt and positive responses! (and apologies if this is a bad use of comment) |
Apologies in advance, I'm not a GitHub expert so I might be confused. Should I be seeing this change in the 2.0.0-RC1? From what I can see #5485 was merged into the master branch. I'm using the https://cdn.plot.ly/plotly-mapbox-2.0.0-rc.1.min.js as the source in the page I'm creating. Thanks. |
Yes. It is included in v2.0.0-rc.1. |
Ahh, ok I understand now. Your change was made to the scattergeo source which is why I didn't see the change in the scattermapbox I was using. My bad. |
@archmoj did we implement this only for geo and not mapbox? |
Thank you, @archmoj and everyone else! |
Example: Any of the examples in the Plotly documentation (this is NOT a documentation issue, it's just easy to use them as examples): https://plotly.com/javascript/scattermapbox/
Reproduce problem: Hover your mouse over any of the points in the map, the longitude and latitude are displayed.
Problem: The longitude and latitude are displayed in the wrong order. They should be displayed Latitude first, Longitude second.
"ISO 6709 - Standard representation of geographic point location by coordinates"
https://en.wikipedia.org/wiki/ISO_6709#Order,_sign,_and_units
http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=53539
Proposed solution:
Add a new configuration key to select a display format. e.g. {"iso6709": "true"}
and/or
Swap the lat/long order displayed by default to conform with ISO6709
Thanks
The text was updated successfully, but these errors were encountered: