summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLForegroundStyleLayer.mm
Commit message (Collapse)AuthorAgeFilesLines
* [darwin] Make -[MGLForegroundStyleLayer sourceIdentifier] abstractJohn Firebaugh2017-04-131-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 managementJohn Firebaugh2017-04-131-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.