Bug fix: depth calculation is incorrect (https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1487)
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170621-1354" 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-20170622-1302" 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
www/Common.js
www/Common.js
@@ -306,15 +306,10 @@ function getDomDepth(dom, idx) {
dom = dom.parentNode;
depth++;
}
- //if (zIndex > -1) {
- // depth = depth * 1000 + zIndex;
- //} else {
- // depth = zIndex;
- //}
-
- //orgDom.setAttribute("_depth", depth + "_" + zIndex + "_" + idx);
- var result = idx * 1000 + parseInt(zIndex, 10) + depth;
- orgDom.setAttribute("_result", result);
+ var zIdx = (parseInt(zIndex, 10) + 1) * 1000000;
+ var idxS = idx * 1000;
+ var result = zIdx + idxS + depth;
+ orgDom.setAttribute("_depth", result); // for debugging
return result;
}

MODIFY
www/googlemaps-cdv-plugin.js
www/googlemaps-cdv-plugin.js
@@ -286,7 +286,6 @@ module.exports = {
Map: {
getMap: function(div) {
var navDecor = document.getElementsByClassName("nav-decor");
- console.log(navDecor);
if (navDecor && navDecor.length > 0) {
navDecor[0].style.backgroundColor = "rgba(0,0,0,0)";
}

Bug fix: depth calculation is incorrect (https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1487)