summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLSymbolStyleLayer.mm
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-11-12 17:22:54 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-11-16 18:04:00 +0200
commitfa58011bac24181d4ebd3d39db10e3ec5abb323b (patch)
tree48ecd9803120dc4ffd1f315f37428834975f5fc3 /platform/darwin/src/MGLSymbolStyleLayer.mm
parent425a3ade9ebbd874fc7172afdbfa91d861b49f92 (diff)
downloadqtlocation-mapboxgl-upstream/mikhail_layermanager_darwin.tar.gz
[ios, macos] Layer manager for Darwin platformsupstream/mikhail_layermanager_darwin
The newly introduced `MGLStyleLayerManager` is now responsible for creating both style layer objects and their obj C peers on Darwin.
Diffstat (limited to 'platform/darwin/src/MGLSymbolStyleLayer.mm')
-rw-r--r--platform/darwin/src/MGLSymbolStyleLayer.mm11
1 files changed, 10 insertions, 1 deletions
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 <mbgl/style/transition_options.hpp>
-#include <mbgl/style/layers/symbol_layer.hpp>
+
namespace mbgl {
@@ -1610,3 +1611,11 @@ namespace mbgl {
}
@end
+
+namespace mbgl {
+
+MGLStyleLayer* SymbolStyleLayerPeerFactory::createPeer(style::Layer* rawLayer) {
+ return [[MGLSymbolStyleLayer alloc] initWithRawLayer:rawLayer];
+}
+
+} // namespace mbgl