Fix: touch is incorrect if another div size is changed
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.3.9-beta-20180731-1317" 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.9-beta-20180731-1540" 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 />
@@ -269,7 +269,7 @@ The native map view is faster, use less network usage, display 3D views, and eve
Minimum required version of Android Support library v4 for this plugin.
https://developers.google.com/android/guides/releases
-->
- <preference name="ANDROID_SUPPORT_V4_VERSION" default="latest.release" />
+ <preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+" />
<framework src="com.android.support:support-core-utils:$ANDROID_SUPPORT_V4_VERSION" />

MODIFY
www/CordovaGoogleMaps.js
www/CordovaGoogleMaps.js
@@ -85,7 +85,10 @@ function CordovaGoogleMaps(execCmd) {
}
if (mutation.target.hasAttribute("__pluginDomId")) {
elemId = mutation.target.getAttribute("__pluginDomId");
- var transformCSS = common.getStyle(mutation.target, "transform") || common.getStyle(mutation.target, "-webkit-transform");
+ var transformCSS = common.getStyle(mutation.target, "transform") ||
+ common.getStyle(mutation.target, "-webkit-transform") ||
+ common.getStyle(mutation.target, "transition") ||
+ common.getStyle(mutation.target, "-webkit-transition");
if (transformCSS !== "none") {
mutation.target.dispatchEvent(common.createEvent("transitionstart"));

MODIFY
www/googlemaps-cdv-plugin.js
www/googlemaps-cdv-plugin.js
@@ -145,9 +145,11 @@ if (!cordova) {
cordovaGoogleMaps.transforming = false;
return;
}
- if (!cordovaGoogleMaps.transforming) {
- return;
- }
+ // Don't block by transform flag
+ // because some ionic CSS technique can not trigger `transitionstart` event.
+ // if (!cordovaGoogleMaps.transforming) {
+ // return;
+ // }
cordovaGoogleMaps.transforming = false;
var changes = cordovaGoogleMaps.followMapDivPositionOnly.call(cordovaGoogleMaps);
if (changes) {

Fix: touch is incorrect if another div size is changed #2367