[macos] Call overlay handler when snapshotting
This commit is contained in:
committed by
Minh Nguyễn
parent
6d0c81ddaf
commit
180ab72055
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user