diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-01-25 10:01:36 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-01-25 15:38:07 +0200 |
commit | 8fedfbf160ab7228c5a51d1f6d4586b1ea54bac3 (patch) | |
tree | 125e2b27e8acdf24ff21ba6a65b19e33abf805f9 /platform/darwin | |
parent | ee6edcdf7e42a116b4fc020123497d38991cde4b (diff) | |
download | qtlocation-mapboxgl-8fedfbf160ab7228c5a51d1f6d4586b1ea54bac3.tar.gz |
[android, darwin] Fix core-only layer creation
In the layer manager implementations `addLayerTypeCoreOnly()`
should be called with core-only modules.
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/MGLStyleLayerManager.mm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/platform/darwin/src/MGLStyleLayerManager.mm b/platform/darwin/src/MGLStyleLayerManager.mm index c0b72e4451..72673d4c23 100644 --- a/platform/darwin/src/MGLStyleLayerManager.mm +++ b/platform/darwin/src/MGLStyleLayerManager.mm @@ -17,52 +17,52 @@ namespace mbgl { LayerManagerDarwin::LayerManagerDarwin() { #if defined(MBGL_LAYER_FILL_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<FillStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<FillLayerFactory>()); #elif !defined(MBGL_LAYER_FILL_DISABLE_ALL) addLayerType(std::make_unique<FillStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_LINE_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<LineStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<LineLayerFactory>()); #elif !defined(MBGL_LAYER_LINE_DISABLE_ALL) addLayerType(std::make_unique<LineStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_CIRCLE_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<CircleStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<CircleLayerFactory>()); #elif !defined(MBGL_LAYER_CIRCLE_DISABLE_ALL) addLayerType(std::make_unique<CircleStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_SYMBOL_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<SymbolStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<SymbolLayerFactory>()); #elif !defined(MBGL_LAYER_SYMBOL_DISABLE_ALL) addLayerType(std::make_unique<SymbolStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_RASTER_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<RasterStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<RasterLayerFactory>()); #elif !defined(MBGL_LAYER_RASTER_DISABLE_ALL) addLayerType(std::make_unique<RasterStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_BACKGROUND_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<BackgroundStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<BackgroundLayerFactory>()); #elif !defined(MBGL_LAYER_BACKGROUND_DISABLE_ALL) addLayerType(std::make_unique<BackgroundStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_HILLSHADE_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<HillshadeStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<HillshadeLayerFactory>()); #elif !defined(MBGL_LAYER_HILLSHADE_DISABLE_ALL) addLayerType(std::make_unique<HillshadeStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_FILL_EXTRUSION_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<FillExtrusionStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<FillExtrusionLayerFactory>()); #elif !defined(MBGL_LAYER_FILL_EXTRUSION_DISABLE_ALL) addLayerType(std::make_unique<FillExtrusionStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_HEATMAP_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<HeatmapStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<HeatmapLayerFactory>()); #elif !defined(MBGL_LAYER_HEATMAP_DISABLE_ALL) addLayerType(std::make_unique<HeatmapStyleLayerPeerFactory>()); #endif #if defined(MBGL_LAYER_CUSTOM_DISABLE_RUNTIME) - addLayerTypeCoreOnly(std::make_unique<OpenGLStyleLayerPeerFactory>()); + addLayerTypeCoreOnly(std::make_unique<CustomLayerFactory>()); #elif !defined(MBGL_LAYER_CUSTOM_DISABLE_ALL) addLayerType(std::make_unique<OpenGLStyleLayerPeerFactory>()); #endif |