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

🐛 Fix #837 - @turf-mask #865

Merged
merged 3 commits into from
Jul 26, 2017
Merged

🐛 Fix #837 - @turf-mask #865

merged 3 commits into from
Jul 26, 2017

Conversation

thiagoxvo
Copy link
Contributor

Fix #837
Changing from featureEach to flattenEach as suggested in the issue solved the problem.

I've also updated the test case for MultiPolygon to use the example that was broken before.

if (multiFeature.geometry.type === 'MultiPolygon') {
multiFeature = flattenMultiPolygon(multiFeature);
}
featureEach(multiFeature, function (feature) {
flattenEach(multiFeature, function (feature) {
Copy link
Member

Choose a reason for hiding this comment

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

The 2nd flattenEach is no longer required.

if (multiFeature.geometry.type === 'MultiPolygon') {
    multiFeature = flattenMultiPolygon(multiFeature);
}

Can be dropped

thiagoxvo and others added 3 commits July 26, 2017 14:50
Copy link
Member

@DenisCarriere DenisCarriere left a comment

Choose a reason for hiding this comment

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

👍 Thanks @thiagoxvo for this fix

@DenisCarriere DenisCarriere merged commit 99ea6b1 into Turfjs:master Jul 26, 2017
@rowanwins
Copy link
Member

Strong emoji game on the pull request title as well @thiagoxvo , I approve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants