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

Migrate toBounds method to be a static fromLngLat method in LngLatBounds #2188

Merged
merged 8 commits into from
Feb 13, 2023

Conversation

zhangyiatmicrosoft
Copy link
Contributor

@zhangyiatmicrosoft zhangyiatmicrosoft commented Feb 13, 2023

Launch Checklist

  • Add types to LngLatBounds constructor.

  • remove toBounds

  • Create a static method called fromLngLat(lnglat, radius).

  • Fail build on all warnings to stop all future circular dependency problems

  • Confirm your changes do not include backports from Mapbox projects (unless with compliant license)

  • Briefly describe the changes in this PR.

  • Link to related issues.

  • Write tests for all new functionality.

  • Document any changes to public APIs.

  • Add an entry to CHANGELOG.md under the ## main section.

@zhangyiatmicrosoft zhangyiatmicrosoft changed the title Migrate toBounds method to be a static createBouds method in LngLatBounds Migrate toBounds method to be a static fromLngLat method in LngLatBounds Feb 13, 2023
@HarelM
Copy link
Collaborator

HarelM commented Feb 13, 2023

Overall, this looks good. Just a simple improvement if the type.

@HarelM
Copy link
Collaborator

HarelM commented Feb 13, 2023

Why didn't the test run? Can you do a dummy commit?

# Conflicts:
#	CHANGELOG.md
@zhangyiatmicrosoft
Copy link
Contributor Author

Why didn't the test run? Can you do a dummy commit?

Merged and now should work

@HarelM HarelM merged commit 89e4d28 into maplibre:main Feb 13, 2023
@zhangyiatmicrosoft zhangyiatmicrosoft deleted the lnglat0123-pr branch February 13, 2023 19:50
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