Bug fix: Map is not displayed with the SDK 2.3.3 for some reason
MODIFY
src/ios/GoogleMaps/MyPluginLayer.m
src/ios/GoogleMaps/MyPluginLayer.m
@@ -235,7 +235,7 @@ BOOL hasCordovaStatusBar = NO; // YES if the app has cordova-plugin-statusbar
rect.size.height *= zoomScale;
rect.origin.x += offset.x;
rect.origin.y += offset.y;
-///*
+
float webviewWidth = self.webView.frame.size.width;
float webviewHeight = self.webView.frame.size.height;
@@ -262,10 +262,9 @@ BOOL hasCordovaStatusBar = NO; // YES if the app has cordova-plugin-statusbar
[mapCtrl.view removeFromSuperview];
}
}
-///*/
- mapCtrl.isRenderedAtOnce = YES;
- if (rect.origin.x == mapCtrl.view.frame.origin.x &&
+ if (mapCtrl.isRenderedAtOnce == YES &&
+ rect.origin.x == mapCtrl.view.frame.origin.x &&
rect.origin.y == mapCtrl.view.frame.origin.y &&
rect.size.width == mapCtrl.view.frame.size.width &&
rect.size.height == mapCtrl.view.frame.size.height) {
@@ -273,6 +272,8 @@ BOOL hasCordovaStatusBar = NO; // YES if the app has cordova-plugin-statusbar
}
dispatch_async(dispatch_get_main_queue(), ^{
+ mapCtrl.isRenderedAtOnce = YES;
+
[mapCtrl.view setFrame:rect];
rect.origin.x = 0;

Bug fix: Map is not displayed with the SDK 2.3.3 for some reason