Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [darwin] Make -[MGLForegroundStyleLayer sourceIdentifier] abstract | John Firebaugh | 2017-04-13 | 1 | -15/+4 |
| | | | | It's already overridden by concrete subclasses, and by making it abstract we enable the removal of the private MGLForegroundStyleLayer category. | ||||
* | [darwin] Simplify MGLStyleLayer initialization and pointer management | John Firebaugh | 2017-04-13 | 1 | -0/+29 |
Similarly to the previous commit, introduce `-[MGLStyleLayer initWithPendingLayer:]`, allowing the base class to track the owned `_pendingSource` pointer and implement `-addToMapView:` and `-removeFromMapView:` without any casts. Fixes an issue where `-[MGLStyle layerFromMBGLLayer:]` would wind up creating layers whose `_rawLayer` and `_pendingLayer` held different values. |