From fa58011bac24181d4ebd3d39db10e3ec5abb323b Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Mon, 12 Nov 2018 17:22:54 +0200 Subject: [ios, macos] Layer manager for Darwin platforms The newly introduced `MGLStyleLayerManager` is now responsible for creating both style layer objects and their obj C peers on Darwin. --- platform/darwin/src/MGLSymbolStyleLayer.mm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'platform/darwin/src/MGLSymbolStyleLayer.mm') diff --git a/platform/darwin/src/MGLSymbolStyleLayer.mm b/platform/darwin/src/MGLSymbolStyleLayer.mm index cd293481fe..481570fdeb 100644 --- a/platform/darwin/src/MGLSymbolStyleLayer.mm +++ b/platform/darwin/src/MGLSymbolStyleLayer.mm @@ -8,9 +8,10 @@ #import "MGLStyleValue_Private.h" #import "MGLSymbolStyleLayer.h" #import "MGLLoggingConfiguration_Private.h" +#import "MGLSymbolStyleLayer_Private.h" #include -#include + namespace mbgl { @@ -1610,3 +1611,11 @@ namespace mbgl { } @end + +namespace mbgl { + +MGLStyleLayer* SymbolStyleLayerPeerFactory::createPeer(style::Layer* rawLayer) { + return [[MGLSymbolStyleLayer alloc] initWithRawLayer:rawLayer]; +} + +} // namespace mbgl -- cgit v1.2.1