Bug fix: undefined is not an object (evaluating 'polygon.setPoints')
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="cluster-20170823-2236" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="cluster-20170824-1230" 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/MarkerCluster.js
www/MarkerCluster.js
@@ -222,13 +222,13 @@ MarkerCluster.prototype.onClusterClicked = function(cluster) {
var self = this;
var polygon = self.get("polygon");
var bounds = cluster.getBounds();
+ if (self.boundsDraw) {
polygon.setPoints([
bounds.southwest,
{lat: bounds.northeast.lat, lng: bounds.southwest.lng},
bounds.northeast,
{lat: bounds.southwest.lat, lng: bounds.northeast.lng}
]);
- if (self.boundsDraw) {
polygon.setVisible(true);
}
this.map.animateCamera({

Bug fix: undefined is not an object (evaluating 'polygon.setPoints') (#22)