Fix: The LoadingController class of ionic causes JS error
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.3.0-beta-20180416-1345" 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-20180416-1417" 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/CordovaGoogleMaps.js
www/CordovaGoogleMaps.js
@@ -623,18 +623,19 @@ CordovaGoogleMaps.prototype.getMap = function(div, mapOptions) {
// If the map is removed, clean up the information.
map.one('remove', self._remove.bind(self, mapId));
self.MAP_CNT++;
- self.MAPS[mapId] = map;
self.isThereAnyChange = true;
if (div instanceof Promise) {
// This hack code for @ionic-native/google-maps
div.then(function(params) {
+ self.MAPS[mapId] = map;
params = params || [];
params.unshift(map);
postMapInit.apply(self, params);
});
} else {
// Normal code flow
+ self.MAPS[mapId] = map;
postMapInit.call(self, map, div, mapOptions);
}

Fix: The LoadingController class of ionic causes JS error