Skip to content

Commit 88a1734

Browse files
committed
Merge pull request #894 from chrigi/master
Fix iOS toDataURL Image Artifact
2 parents 5a86796 + 975ab24 commit 88a1734

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ios/GoogleMaps/Map.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ -(void)updateCameraPosition: (NSString*)action command:(CDVInvokedUrlCommand *)c
258258

259259
- (void)toDataURL:(CDVInvokedUrlCommand *)command {
260260
UIGraphicsBeginImageContext(self.mapCtrl.view.frame.size);
261-
[self.mapCtrl.map.layer renderInContext:UIGraphicsGetCurrentContext()];
261+
[self.mapCtrl.view drawViewHierarchyInRect:self.mapCtrl.map.layer.bounds afterScreenUpdates:NO];
262262
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
263263
UIGraphicsEndImageContext();
264264

0 commit comments

Comments
 (0)