We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a86796 + 975ab24 commit 88a1734Copy full SHA for 88a1734
1 file changed
src/ios/GoogleMaps/Map.m
@@ -258,7 +258,7 @@ -(void)updateCameraPosition: (NSString*)action command:(CDVInvokedUrlCommand *)c
258
259
- (void)toDataURL:(CDVInvokedUrlCommand *)command {
260
UIGraphicsBeginImageContext(self.mapCtrl.view.frame.size);
261
- [self.mapCtrl.map.layer renderInContext:UIGraphicsGetCurrentContext()];
+ [self.mapCtrl.view drawViewHierarchyInRect:self.mapCtrl.map.layer.bounds afterScreenUpdates:NO];
262
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
263
UIGraphicsEndImageContext();
264
0 commit comments