Skip to content

Conversation

addaleax
Copy link
Collaborator

GeoJSON (and thus MongoDB) stores coordinates as [Longitude, Latitude],
while elsewhere the reverse format [Latitude, Longitude] is common.

Compass displays the points on the map correctly, but reverses
the two values in the mouseover text.

Instead of switching to MongoDB/GeoJSON order, just clearly mark which
value is latitude and which is longitude.

Description

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

GeoJSON (and thus MongoDB) stores coordinates as [Longitude, Latitude],
while elsewhere the reverse format [Latitude, Longitude] is common.

Compass displays the points on the map correctly, but reverses
the two values in the mouseover text.

Instead of switching to MongoDB/GeoJSON order, just clearly mark which
value is latitude and which is longitude.
@addaleax addaleax merged commit edd623f into main Feb 22, 2022
@addaleax addaleax deleted the 5526-dev branch February 22, 2022 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants