Bug fix: Can not click on the overlay menu
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta3-20170903-1743" 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-beta3-20170904-1341" 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
@@ -451,10 +451,12 @@ public class MyPluginLayout extends FrameLayout implements ViewTreeObserver.OnSc
@Override
public void run() {
+ if (pluginMap.mapView.getParent() == null) {
TouchableWrapper wrapper = new TouchableWrapper(context);
touchableWrappers.put(pluginMap.mapId, wrapper);
pluginMap.mapView.addView(wrapper);
scrollFrameLayout.addView(pluginMap.mapView);
+ }
mActivity.getWindow().getDecorView().requestFocus();

MODIFY
src/android/plugin/google/maps/PluginUtil.java
src/android/plugin/google/maps/PluginUtil.java
@@ -205,12 +205,12 @@ public class PluginUtil {
value = json.get(key);
if (Boolean.class.isInstance(value)) {
mBundle.putBoolean(key, (Boolean)value);
- } else if (Double.class.isInstance(value)) {
- mBundle.putDouble(key, (Double)value);
} else if (Integer.class.isInstance(value)) {
mBundle.putInt(key, (Integer)value);
} else if (Long.class.isInstance(value)) {
mBundle.putLong(key, (Long)value);
+ } else if (Double.class.isInstance(value)) {
+ mBundle.putDouble(key, (Double)value);
} else if (JSONObject.class.isInstance(value)) {
mBundle.putBundle(key, Json2Bundle((JSONObject)value));
} else {

MODIFY
www/Common.js
www/Common.js
@@ -321,7 +321,8 @@ function getDomDepth(dom, idx) {
depth++;
}
*/
- var result = (zIndex + 1) * 1000 + idx;
+ //var result = ((zIndex + 1) << (depth + 1)) + idx;
+ var result = Math.floor(((zIndex + 1) / (idx + 1) + idx) * 1000);
orgDom.setAttribute("_depth", result); // for debugging
return result;
}

Bug fix: Can not click on the overlay menu #1703