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

Update the fileReader and geojsonReader. #905

Merged
merged 1 commit into from
Aug 31, 2018
Merged

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Aug 27, 2018

Update the fileReader and geojsonReader docs.

Remove a function that was untested and incorrect from the fileReader. Add tests for the fileReader.

Rename the jsonReader to geojsonReader. An alias called jsonReader is maintained to not break existing code. The geojsonReader can take style defaults for points, lines, and polygons.

This uses newer language features, such as the spread operator.

This resolves #822. This resolves #297, though it does not add a load event. If that is still desired, a new issue should be made.

@manthey
Copy link
Contributor Author

manthey commented Aug 27, 2018

This depends on PR #903 (for proper coverage) and PR #904 (for style jsdoc typedefs).

@manthey manthey force-pushed the file-readers branch 2 times, most recently from 0bd6eb7 to cb37ac0 Compare August 28, 2018 19:56
@manthey manthey changed the base branch from master to style-spec August 28, 2018 20:07
Copy link
Member

@aashish24 aashish24 left a comment

Choose a reason for hiding this comment

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

LRTM

Remove a function that was untested and incorrect from the fileReader.
Add tests for the fileReader.

Rename the `jsonReader` to `geojsonReader`.  An alias called
`jsonReader` is maintained to not break existing code.  The
geojsonReader can take style defaults for points, lines, and polygons.

This uses newer language features, such as the spread operator.

This resolves #822.  This resolves #297, though it does not add a load
event.  If that is still desired, a new issue should be made.
@manthey manthey merged commit eece4de into style-spec Aug 31, 2018
@manthey manthey deleted the file-readers branch August 31, 2018 14:59
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