summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLLineStyleLayer.mm
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2017-01-03 10:25:17 +0100
committerGitHub <noreply@github.com>2017-01-03 10:25:17 +0100
commit1aab26e3157db787eefe9df7318d3eee009ca802 (patch)
tree7a3abb6cc5cabe5230ff1e5f85bdffaaa23d66aa /platform/darwin/src/MGLLineStyleLayer.mm
parentd35f235dae5e9dd2c825e217c72992f81f7f6661 (diff)
downloadqtlocation-mapboxgl-1aab26e3157db787eefe9df7318d3eee009ca802.tar.gz
Implement MGLForegroundStyleLayer.sourceIdentifier (#7570)
* [ios, macos] sourceIdentifier accessor methods * [ios, macos] generate style code
Diffstat (limited to 'platform/darwin/src/MGLLineStyleLayer.mm')
-rw-r--r--platform/darwin/src/MGLLineStyleLayer.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLLineStyleLayer.mm b/platform/darwin/src/MGLLineStyleLayer.mm
index 48164ed0c8..ab58a35f7f 100644
--- a/platform/darwin/src/MGLLineStyleLayer.mm
+++ b/platform/darwin/src/MGLLineStyleLayer.mm
@@ -61,6 +61,13 @@ namespace mbgl {
super.rawLayer = rawLayer;
}
+- (NSString *)sourceIdentifier
+{
+ MGLAssertStyleLayerIsValid();
+
+ return @(self.rawLayer->getSourceID().c_str());
+}
+
- (NSString *)sourceLayerIdentifier
{
MGLAssertStyleLayerIsValid();