summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-11-20 12:09:20 -0800
committerChris Loer <chris.loer@gmail.com>2018-11-23 11:31:40 -0800
commitff62ccccec99e881a41c9c663f8eff67a8070caf (patch)
tree06f747c3c2f9a22a7d947549ec9c9264271c72f1
parentf11600b90bce135c3f5ebf12575731757940a78c (diff)
downloadqtlocation-mapboxgl-ff62ccccec99e881a41c9c663f8eff67a8070caf.tar.gz
[ios, macos] Pass program cache path and local font family config options to MGLMapSnapshotter.
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index 639a3b62ee..3d2a2525bc 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -16,6 +16,7 @@
#import "MGLStyle.h"
#import "MGLAttributionInfo_Private.h"
#import "MGLLoggingConfiguration_Private.h"
+#import "MGLRendererConfiguration.h"
#if TARGET_OS_IPHONE
#import "UIImage+MGLAdditions.h"
@@ -615,8 +616,11 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
coordinateBounds = MGLLatLngBoundsFromCoordinateBounds(options.coordinateBounds);
}
+ // App-global configuration
+ MGLRendererConfiguration* config = [MGLRendererConfiguration currentConfiguration];
+
// Create the snapshotter
- _mbglMapSnapshotter = std::make_unique<mbgl::MapSnapshotter>(mbglFileSource, _mbglThreadPool, style, size, pixelRatio, cameraOptions, coordinateBounds);
+ _mbglMapSnapshotter = std::make_unique<mbgl::MapSnapshotter>(mbglFileSource, _mbglThreadPool, style, size, pixelRatio, cameraOptions, coordinateBounds, config.cacheDir, config.localFontFamilyName);
}
@end