From 1aab26e3157db787eefe9df7318d3eee009ca802 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Tue, 3 Jan 2017 10:25:17 +0100 Subject: Implement MGLForegroundStyleLayer.sourceIdentifier (#7570) * [ios, macos] sourceIdentifier accessor methods * [ios, macos] generate style code --- platform/darwin/src/MGLCircleStyleLayer.mm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'platform/darwin/src/MGLCircleStyleLayer.mm') diff --git a/platform/darwin/src/MGLCircleStyleLayer.mm b/platform/darwin/src/MGLCircleStyleLayer.mm index 266f2d836e..25dd859606 100644 --- a/platform/darwin/src/MGLCircleStyleLayer.mm +++ b/platform/darwin/src/MGLCircleStyleLayer.mm @@ -54,6 +54,13 @@ namespace mbgl { super.rawLayer = rawLayer; } +- (NSString *)sourceIdentifier +{ + MGLAssertStyleLayerIsValid(); + + return @(self.rawLayer->getSourceID().c_str()); +} + - (NSString *)sourceLayerIdentifier { MGLAssertStyleLayerIsValid(); -- cgit v1.2.1