Bug fix: can not cast from long to int
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170623-1318" 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.0.0-beta2-20170623-1421" 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/android/plugin/google/maps/MyPluginLayout.java
src/android/plugin/google/maps/MyPluginLayout.java
@@ -512,7 +512,7 @@ public class MyPluginLayout extends FrameLayout implements ViewTreeObserver.OnSc
String domIDs[] = HTMLNodes.keySet().toArray(new String[HTMLNodes.size()]);
Bundle domInfo = HTMLNodes.get(pluginMap.mapDivId);
RectF htmlElementRect;
- int mapDivDepth = domInfo.getInt("depth");
+ long mapDivDepth = domInfo.getLong("depth");
for (String domId : domIDs) {
if (pluginMap.mapDivId.equals(domId)) {
@@ -525,7 +525,7 @@ public class MyPluginLayout extends FrameLayout implements ViewTreeObserver.OnSc
if (domInfo == null) {
continue;
}
- if (domInfo.getInt("depth") <= mapDivDepth) {
+ if (domInfo.getLong("depth") <= mapDivDepth) {
continue;
}

Bug fix: can not cast from long to int