(JS) Bug fix: map.clear() of the `@ionic-native/google-maps` plugin causes an error of MarkerCluster
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.1.2-beta-20171127-1928" 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.1.2-beta-20171128-1248" 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
@@ -281,12 +281,12 @@ MarkerCluster.prototype.remove = function() {
activeMarkerId = self.map.get("active_marker_id"),
deleteClusters = [];
- self.trigger("remove");
self.taskQueue = [];
Object.defineProperty(self, "_isRemoved", {
value: true,
writable: false
});
+ self.trigger("remove");
if (resolution === self.OUT_OF_RESOLUTION) {
while (self._clusters[resolution].length > 0) {

(JS) Bug fix: map.clear() of the `@ionic-native/google-maps` plugin causes an error of MarkerCluster #1923