(function(){var d=window.ZDC;d.MarkerCluster=d.MarkerCluster=function(f,t){function r(a,b){for(var c in b)try{b[c].constructor==Object?a[c]=r(a[c],b[c]):b.hasOwnProperty(c)&&(a[c]=b[c])}catch(g){a[c]=b[c]}return a}this.indexOf=function(a,b,c){c=c||0;for(var g=a.length;c'+a+"",size:new d.WH(c,c),offset:d.Pixel(-c/2,-c/2)};return new d.UserWidget(e,c)},textStyle:null,method:"distance",radius:10};r(this.options, t);this.clusters=[];var b=this;this.addClusterEventHandle=function(a){for(var b=[],c=0;c=this.options.radius||a>this.options.maxZoom||0>=this.markers.length||("k-means"==this.options.method&&this.kmeans.cluster(),"distance"==this.options.method&&this.distance.cluster(),"box"==this.options.method&&this.clusterer.cluster())};d.MarkerCluster.prototype.removeMarker=d.MarkerCluster.prototype.removeMarker=this.removeMarker=function(){this.options.markers=[];for(var a=0;a