Skip to content
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

Clarify docstrings for center param in Map to show coordinate ordering in LngLat. #5042

Merged
merged 2 commits into from
Jul 26, 2017
Merged

Conversation

karthikb351
Copy link
Contributor

Similar clarification is present in the docstring for LngLat

Looking at the examples, it isn't obvious to non-US users that the order passed to center is LngLat and not LatLng.

Currently, you need to go 3 steps in the docs to find the explanation:

screen shot 2017-07-25 at 9 50 39 pm
👇
screen shot 2017-07-25 at 9 50 56 pm
👇
screen shot 2017-07-25 at 9 51 06 pm

I believe a lot of people might be tripping up here, especially those coming from Leaflet or Mapbox.js

Mapbox has also made this clear in their guide to how web apps work

screen shot 2017-07-25 at 10 04 48 pm

Launch Checklist

  • briefly describe the changes in this PR

@mollymerp mollymerp changed the base branch from master to mb-pages July 26, 2017 21:12
@mollymerp mollymerp changed the base branch from mb-pages to master July 26, 2017 21:13
Copy link
Contributor

@mollymerp mollymerp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karthikb351 thanks for the contribution!

@mollymerp mollymerp merged commit af7ae75 into mapbox:master Jul 26, 2017
mollymerp pushed a commit that referenced this pull request Jul 26, 2017
@karthikb351 karthikb351 deleted the patch-1 branch July 27, 2017 18:16
@planemad
Copy link

Thank you @karthikb351 🍪

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.

3 participants