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/MGLFillStyleLayer.mm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'platform/darwin/src/MGLFillStyleLayer.mm') diff --git a/platform/darwin/src/MGLFillStyleLayer.mm b/platform/darwin/src/MGLFillStyleLayer.mm index 891ab85d0b..204a4e92cb 100644 --- a/platform/darwin/src/MGLFillStyleLayer.mm +++ b/platform/darwin/src/MGLFillStyleLayer.mm @@ -49,6 +49,13 @@ namespace mbgl { super.rawLayer = rawLayer; } +- (NSString *)sourceIdentifier +{ + MGLAssertStyleLayerIsValid(); + + return @(self.rawLayer->getSourceID().c_str()); +} + - (NSString *)sourceLayerIdentifier { MGLAssertStyleLayerIsValid(); -- cgit v1.2.1