Skip to content

scattermapbox: Latitude and Longitude are displayed in the incorrect order #5472

Closed
@MediumBrownToast

Description

@MediumBrownToast

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"

Latitude comes before longitude
North latitude is positive
East longitude is positive

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions