update: use long for domDepth and mapDivDepth
MODIFY
src/ios/GoogleMaps/MyPluginLayer.m
src/ios/GoogleMaps/MyPluginLayer.m
@@ -286,7 +286,7 @@ BOOL hasCordovaStatusBar = NO; // YES if the app has cordova-plugin-statusbar
webviewHeight *= zoomScale;
NSDictionary *domInfo, *mapDivInfo;
- int domDepth, mapDivDepth;
+ long domDepth, mapDivDepth;
if (hasCordovaStatusBar) {
UIApplication* app = [UIApplication sharedApplication];
if (app.isStatusBarHidden) {
@@ -338,14 +338,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"] longValue];
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"] longValue];
if (domDepth < mapDivDepth) {
continue;
}

update: use long for domDepth and mapDivDepth