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

[ios, macos] Use the rawLayer pointer to access the mbgl layer #6966

Merged
merged 1 commit into from
Nov 8, 2016

Conversation

boundsj
Copy link
Contributor

@boundsj boundsj commented Nov 8, 2016

#6904 renamed the layer property to rawLayer. The subclasses of MGLStyleLayer were all updated to use rawLayer but the
MGLStyleLayer itself was not. So, common functionality like setting visibility caused a crash.
This removes the layer property in MGLStyleLayer itself and uses the rawLayer property that actually points to the mbgl layer.

cc @1ec5

A previous refactor neglected to remove the unused `layer` property.
This removes that property and uses the rawLayer property that actually
points to the mbgl layer.
@boundsj boundsj added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS crash ✓ ready for review release blocker Blocks the next final release runtime styling labels Nov 8, 2016
@boundsj boundsj added this to the ios-v3.4.0 milestone Nov 8, 2016
@boundsj boundsj self-assigned this Nov 8, 2016
@mention-bot
Copy link

@boundsj, thanks for your PR! By analyzing the history of the files in this pull request, we identified @1ec5 to be a potential reviewer.

@boundsj
Copy link
Contributor Author

boundsj commented Nov 8, 2016

I noticed this while responding to #6959

@boundsj boundsj merged commit 5e65d81 into release-ios-v3.4.0 Nov 8, 2016
@boundsj boundsj deleted the boundsj-use-layer-raw-pointer branch November 8, 2016 21:33
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 release blocker Blocks the next final release runtime styling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants