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

Added LeafDoc for toGeoJSON's precision - Issue #6344 #6375

Merged
merged 5 commits into from Jan 17, 2019

Conversation

rkatka
Copy link
Contributor

@rkatka rkatka commented Oct 17, 2018

Added LeafDoc for toGeoJSON's precision argument - Issue #6344

Copy link
Member

@perliedman perliedman left a comment

Choose a reason for hiding this comment

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

Hi and thanks for taking the time to look into this!

I think this needs some work, though. First, the precision parameter is optional, and should be marked as such: precision?: Number. I also think it should be made clear that precision in this contexts means the number of decimals places for coordinates, and that the default precision is 6.

@rkatka
Copy link
Contributor Author

rkatka commented Jan 10, 2019

Hi @perliedman,

I updated the PR with your recommended changes. Please review and let me know if you have questions.

Copy link
Sponsor Collaborator

@cherniavskii cherniavskii left a comment

Choose a reason for hiding this comment

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

LGTM

@perliedman perliedman merged commit 07a1082 into Leaflet:master Jan 17, 2019
@perliedman
Copy link
Member

Nice! Thanks!

Schleuse pushed a commit to Schleuse/Leaflet that referenced this pull request Dec 3, 2019
…#6375)

* Added LeafDoc for toGeoJSON's precision

* Added LeafDoc for toGeoJSON's precision argument
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.

None yet

3 participants