(iOS) Bug fix: Ionic latest release map is not working with tabs and toolbar
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.1.2-beta-20171106-1028" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.1.2-beta-20171106-1121" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
src/ios/GoogleMaps/MyPluginLayer.m
src/ios/GoogleMaps/MyPluginLayer.m
@@ -323,7 +323,7 @@ BOOL hasCordovaStatusBar = NO; // YES if the app has cordova-plugin-statusbar
webviewHeight *= zoomScale;
NSDictionary *domInfo, *mapDivInfo;
- int domDepth, mapDivDepth;
+ double domDepth, mapDivDepth;
if (hasCordovaStatusBar) {
UIApplication* app = [UIApplication sharedApplication];
if (app.isStatusBarHidden) {
@@ -375,14 +375,14 @@ BOOL hasCordovaStatusBar = NO; // YES if the app has cordova-plugin-statusbar
// Is the clicked point is on the html elements in the map?
mapDivInfo = [self.pluginScrollView.debugView.HTMLNodes objectForKey:mapCtrl.mapDivId];
- mapDivDepth = [[mapDivInfo objectForKey:@"depth"] intValue];
+ mapDivDepth = [[mapDivInfo objectForKey:@"depth"] doubleValue];
for (NSString *domId in self.pluginScrollView.debugView.HTMLNodes) {
if ([mapCtrl.mapDivId isEqualToString:domId]) {
continue;
}
domInfo = [self.pluginScrollView.debugView.HTMLNodes objectForKey:domId];
- domDepth = [[domInfo objectForKey:@"depth"] intValue];
+ domDepth = [[domInfo objectForKey:@"depth"] doubleValue];
if (domDepth < mapDivDepth) {
continue;
}

(iOS) Bug fix: Ionic latest release map is not working with tabs and toolbar #1864