--- markerclusterer.js Wed Nov 25 09:00:35 2009 +++ markerclusterer-mod.js Wed Nov 25 09:02:09 2009 @@ -464,6 +464,15 @@ this.addMarkers(opt_markers); } + //###max + this.destroy = function(){ + this.clearMarkers(); + GEvent.removeListener(mcfn_); + mcfn_ = null; + me_ = null; + } + //###max + // when map move end, regroup. mcfn_ = GEvent.addListener(map_, "moveend", function () { me_.resetViewport();