Bug fix: can not open the htmlInfoWindow of the kml layer after closed at once
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.0-beta-20180124-0018" 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-0107" 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
@@ -239,9 +239,6 @@ var ignoreTags = [
"pre", "textarea", "p", "form", "input", "caption", "canvas", "svg"
];
-// .pgm-ignore class allows you to indicate that the DOM element is not touchable.
-// This is useful when you have lots of items, such as list item.
-var ignoreClasses = ["nav-decor", "pgm-ignore"];
function shouldWatchByNative(node) {
if (node.nodeType !== Node.ELEMENT_NODE || !node.parentNode) {
@@ -260,12 +257,6 @@ function shouldWatchByNative(node) {
if (classNames.indexOf("_gmaps_cdv_") > -1) {
return true;
}
- var matches = classNames.filter(function(clsName) {
- return ignoreClasses.indexOf(clsName) !== -1;
- });
- if (matches && matches.length > 0) {
- return false;
- }
var visibilityCSS = getStyle(node, 'visibility');
var displayCSS = getStyle(node, 'display');

MODIFY
www/KmlOverlay.js
www/KmlOverlay.js
@@ -196,11 +196,15 @@ var KmlOverlay = function(map, kmlId, camera, kmlData, kmlOverlayOptions) {
marker.setPosition(position);
marker.setVisible(true);
marker.setAnimation(plugin.google.maps.Animation.DROP);
+ marker.off(event.MARKER_CLICK);
+ marker.on(event.MARKER_CLICK, function() {
+ ballon.open(marker);
+ });
map.animateCamera({
target: position,
duration: 300
}, function() {
- ballon.open(marker);
+ marker.trigger(event.MARKER_CLICK);
});
}
};

Bug fix: can not open the htmlInfoWindow of the kml layer after closed at once