Update build

This commit is contained in:
danzel
2012-12-06 09:47:51 +13:00
parent 13e71f5a85
commit 74b9b9ba84
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -237,6 +237,20 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
return bounds;
},
//Don't override LayerGroup.eachLayer, but provide the same functionality for external users
eachChildLayer: function (method, context) {
var markers = this._needsClustering.slice(),
i;
if (this._topClusterLevel) {
this._topClusterLevel.getAllChildMarkers(markers);
}
for (i = markers.length - 1; i >= 0; i--) {
method.call(context, markers[i]);
}
},
//Returns true if the given layer is in this MarkerClusterGroup
hasLayer: function (layer) {
if (this._needsClustering.length > 0) {
+1 -1
View File
File diff suppressed because one or more lines are too long