Replace absolute path of URL for ionic 5
MODIFY
src/ios/GoogleMaps/PluginGroundOverlay.m
src/ios/GoogleMaps/PluginGroundOverlay.m
if ([iconPath containsString:@"assets/"]) {
iconPath = [iconPath regReplace:@"^.*assets/" replaceTxt:[NSString stringWithFormat:@"%@/assets/", wwwPath] options:NSRegularExpressionCaseInsensitive];
}
+ iconPath = [iconPath stringByReplacingOccurrencesOfString:wwwPath withString: @""];
iconPath = [iconPath stringByReplacingOccurrencesOfString:@"http://localhost:8080" withString: wwwPath];
if ([iconPath hasPrefix:@"file://"] || [iconPath hasPrefix:@"/"]) {

MODIFY
src/ios/GoogleMaps/PluginKmlOverlay.m
src/ios/GoogleMaps/PluginKmlOverlay.m
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *wwwPath = [mainBundle pathForResource:@"www/cordova" ofType:@"js"];
wwwPath = [wwwPath stringByReplacingOccurrencesOfString:@"/cordova.js" withString:@""];
+
+ urlStr = [urlStr stringByReplacingOccurrencesOfString:wwwPath withString: @""];
urlStr = [urlStr stringByReplacingOccurrencesOfString:@"http://localhost:8080" withString: wwwPath];

MODIFY
src/ios/GoogleMaps/PluginMarker.m
src/ios/GoogleMaps/PluginMarker.m
if ([urlStr containsString:@"assets/"]) {
urlStr = [urlStr regReplace:@"^.*assets" replaceTxt:[NSString stringWithFormat:@"%@/assets/", wwwPath] options:NSRegularExpressionCaseInsensitive];
}
+ urlStr = [urlStr stringByReplacingOccurrencesOfString:wwwPath withString: @""];
urlStr = [urlStr stringByReplacingOccurrencesOfString:@"http://localhost:8080" withString: wwwPath];
if ([urlStr hasPrefix:@"file:"] || [urlStr hasPrefix:@"/"]) {

Replace absolute path of URL for ionic 5