From f40e6615534b0da709ef0ab2828b02d3987888bd Mon Sep 17 00:00:00 2001 From: Tobrun Date: Tue, 22 May 2018 20:49:28 +0200 Subject: [darwin] - replace styleUrl withe std::pair --- platform/darwin/src/MGLMapSnapshotter.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm index 923c8fb2a1..76d99a0411 100644 --- a/platform/darwin/src/MGLMapSnapshotter.mm +++ b/platform/darwin/src/MGLMapSnapshotter.mm @@ -428,6 +428,7 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64; _mbglThreadPool = mbgl::sharedThreadPool(); std::string styleURL = std::string([options.styleURL.absoluteString UTF8String]); + std::pair style = std::make_pair(false, styleURL); // Size; taking into account the minimum texture size for OpenGL ES // For non retina screens the ratio is 1:1 MGLSnapshotterMinimumPixelSize @@ -454,7 +455,7 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64; } // Create the snapshotter - _mbglMapSnapshotter = std::make_unique(*mbglFileSource, *_mbglThreadPool, styleURL, size, pixelRatio, cameraOptions, coordinateBounds); + _mbglMapSnapshotter = std::make_unique(*mbglFileSource, *_mbglThreadPool, style, size, pixelRatio, cameraOptions, coordinateBounds); } @end -- cgit v1.2.1