Fix: map did not attach after coming back from stacked another page
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.3.3" 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.4-beta-20180517-1004" 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
@@ -242,15 +242,17 @@ CordovaGoogleMaps.prototype.putHtmlElements = function() {
var map = self.MAPS[mapId];
var isTouchable = false;
if (map) {
+ var mapDiv = map.getDiv();
isTouchable = (
map.getVisible() &&
// map.getClickable() && <-- don't consider this.
- map.getDiv() &&
- common.shouldWatchByNative(map.getDiv()));
+ mapDiv &&
+ common.shouldWatchByNative(mapDiv));
if (isTouchable) {
- var elemId = common.getPluginDomId(map.getDiv());
+ var elemId = common.getPluginDomId(mapDiv);
var domInfo = self.domPositions[elemId];
- if (domInfo && domInfo.size) {
+ if (domInfo) {
+ self.domPositions[elemId].size = common.getDivRect(mapDiv);
isTouchable = domInfo.size.width * domInfo.size.height > 0;
} else {
isTouchable = false;

Fix: map did not attach after coming back from stacked another page #2264