2012-03-08 119 views

回答

0

我有一个看看源,好像你可以通过一个opt_nodraw标志的addMarker方法。不知道这是你在找什么

/** 
* Add an array of markers to the clusterer. 
* 
* @param {Array.<google.maps.Marker>} markers The markers to add. 
* @param {boolean=} opt_nodraw Whether to redraw the clusters. 
*/ 
MarkerClusterer.prototype.addMarkers = function(markers, opt_nodraw) { 
    for (var i = 0, marker; marker = markers[i]; i++) { 
    this.pushMarkerTo_(marker); 
    } 
    if (!opt_nodraw) { 
    this.redraw(); 
    } 
};