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

Allow creation of shape collections with no shapes #7632

Merged

Conversation

boundsj
Copy link
Contributor

@boundsj boundsj commented Jan 8, 2017

Fixes #7628

@boundsj boundsj added crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS labels Jan 8, 2017
@boundsj boundsj added this to the ios-v3.4.0 milestone Jan 8, 2017
@boundsj boundsj self-assigned this Jan 8, 2017
@boundsj boundsj requested a review from 1ec5 January 8, 2017 22:32
@mention-bot
Copy link

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

@boundsj boundsj changed the title [ios, macos] Allow creation of shape collections with no shapes Allow creation of shape collections with no shapes Jan 8, 2017
Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

Let’s add a test that this class’s conversion methods still work correctly with an empty shapes array.

Also, MGLShapeCollection’s documentation says “consisting of one or more … shapes” but should now say “zero or more”. Finally, since MGLShapeCollection existed in v3.3.0, you can add a blurb to the changelogs about this bug fix.

@boundsj boundsj force-pushed the boundsj-remove-shape-collection-assertion branch from 1e5c30e to aa48fac Compare January 9, 2017 00:45
@boundsj boundsj merged commit 4cee2b1 into release-ios-v3.4.0 Jan 9, 2017
@boundsj boundsj deleted the boundsj-remove-shape-collection-assertion branch January 9, 2017 01:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants