Fix: An error occurs when you click a marker of marker cluster
MODIFY
www/MarkerCluster.js
www/MarkerCluster.js
@@ -333,12 +333,17 @@ MarkerCluster.prototype.remove = function (callback) {
keys = Object.keys(self._markerMap);
keys.forEach(function (markerId) {
- self._markerMap[markerId].remove(function() {
+ try {
+ self._markerMap[markerId].remove();
+ } catch(e) {
+ // ignore
+ }
+ })
+ keys.forEach(function (markerId) {
self._markerMap[markerId].destroy();
self._markerMap[markerId] = undefined;
delete self._markerMap[markerId];
});
- });
if (self.boundsDraw && self.get('polygon')) {
self.get('polygon').remove();
}

Fix: An error occurs when you click a marker of marker cluster #2660