From 180ab72055551a6ecfaefa5d74a506034cf04fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Mon, 23 Mar 2020 16:51:00 -0700 Subject: [PATCH] [macos] Call overlay handler when snapshotting --- platform/darwin/src/MGLMapSnapshotter.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm index b556349d1..c3cf223cf 100644 --- a/platform/darwin/src/MGLMapSnapshotter.mm +++ b/platform/darwin/src/MGLMapSnapshotter.mm @@ -447,6 +447,8 @@ MGLImage *MGLAttributedSnapshot(mbgl::MapSnapshotter::Attributions attributions, [sourceImageRep drawInRect: targetFrame]; + overlayHandler(); + NSGraphicsContext *currentContext = [NSGraphicsContext currentContext]; if (!currentContext) { // If the current context has been corrupted by the user,