Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Avoid clustering unclusterable GeoJSON #7633

Merged
merged 2 commits into from
Jan 9, 2017

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jan 8, 2017

Ignore empty feature collections or non–feature collections for the purposes of deciding whether to cluster or tile the GeoJSON. A source’s clustering option can only be set when the source is constructed, but setGeoJSON() enables the developer to swap a clusterable feature for an unclusterable geometry and back.

Added iOS/macOS unit tests of creating shape sources with unclusterable shapes. The second of these tests depends on #7632 to pass.

Fixes #7622.

/cc @boundsj

@1ec5 1ec5 added clustering Core The cross-platform C++ core, aka mbgl crash runtime styling labels Jan 8, 2017
@mention-bot
Copy link

@1ec5, thanks for your PR! By analyzing this pull request, we identified @mourner, @jfirebaugh and @boundsj to be potential reviewers.

@1ec5 1ec5 added this to the ios-v3.4.0 milestone Jan 8, 2017
@1ec5 1ec5 self-assigned this Jan 8, 2017
@1ec5 1ec5 requested a review from mourner January 8, 2017 22:54
Copy link
Member

@mourner mourner left a comment

Choose a reason for hiding this comment

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

The diff looks good to me; what's up with the failed build though?

@1ec5
Copy link
Contributor Author

1ec5 commented Jan 8, 2017

what's up with the failed build though?

I optimistically included a unit test that depends on #7632. Once that PR lands and I rebase this branch, the test will pass with flying colors. 🌈

@boundsj
Copy link
Contributor

boundsj commented Jan 9, 2017

#7632 is ready!

Ignore empty feature collections or non–feature collections for the purposes of clustering or tiling. A source’s clustering option can only be set when the source is constructed, but setGeoJSON() enables the developer to swap a clusterable feature for an unclusterable geometry and back.
@1ec5 1ec5 merged commit c6e60b8 into release-ios-v3.4.0 Jan 9, 2017
@1ec5 1ec5 deleted the 1ec5-cluster-empty-7622 branch January 9, 2017 02:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
clustering Core The cross-platform C++ core, aka mbgl crash runtime styling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants