Fix missing data part in toDataURL
This commit prepends the 'data:image/png;base64,'
part in the toDataURL method on iOS.
Fixes:
MODIFY
src/ios/GoogleMaps/PluginMap.m
src/ios/GoogleMaps/PluginMap.m
[self.mapCtrl.executeQueue addOperationWithBlock:^{
NSData *imageData = UIImagePNGRepresentation(image);
NSString* base64Encoded = [imageData base64EncodedStringWithOptions:0];
+ NSString* base64EncodedWithData = [@"data:image/png;base64," stringByAppendingString:base64Encoded];
- CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:base64Encoded];
+ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:base64EncodedWithData];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}];
}];

Fix missing data part in toDataURL

This commit prepends the 'data:image/png;base64,'
part in the toDataURL method on iOS.

Fixes: #2572