Bug fix: normal code flow does not work
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.3.0-beta-20180413-2238" 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.3.0-beta-20180414-1023" 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
@@ -198,9 +198,10 @@ function parseBoolean(boolValue) {
}
function isDom(element) {
- return !!element &&
- typeof element === "object" &&
- "getBoundingClientRect" in element;
+ return element &&
+ element.nodeType === Node.ELEMENT_NODE &&
+ element instanceof SVGElement === false &&
+ typeof element.getBoundingClientRect === "function";
}
function getDivRect(div) {

MODIFY
www/CordovaGoogleMaps.js
www/CordovaGoogleMaps.js
@@ -626,7 +626,6 @@ CordovaGoogleMaps.prototype.getMap = function(div, mapOptions) {
self.MAPS[mapId] = map;
self.isThereAnyChange = true;
-
if (div instanceof Promise) {
// This hack code for @ionic-native/google-maps
div.then(function(params) {
@@ -636,7 +635,7 @@ CordovaGoogleMaps.prototype.getMap = function(div, mapOptions) {
});
} else {
// Normal code flow
- postMapInit.call(self, map, args);
+ postMapInit.call(self, map, div, mapOptions);
}
return map;

Bug fix: normal code flow does not work