prevent error stop
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.0-beta-20180124-1240" 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.2.0-beta-20180124-1245" 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/Map.js
www/Map.js
@@ -183,7 +183,11 @@ Map.prototype.getMap = function(mapId, div, options) {
// Insert the infoWindow layer
if (self._layers.info.parentNode) {
+ try {
self._layers.info.parentNode.removeChild(self._layers.info.parentNode);
+ } catch (e) {
+ // ignore
+ }
}
var positionCSS;
for (var i = 0; i < div.children.length; i++) {
@@ -690,7 +694,11 @@ Map.prototype.setDiv = function(div) {
// Insert the infoWindow layer
if (self._layers.info.parentNode) {
+ try {
self._layers.info.parentNode.removeChild(self._layers.info.parentNode);
+ } catch(e) {
+ //ignore
+ }
}
var positionCSS;
for (var i = 0; i < div.children.length; i++) {

prevent error stop