diff --git a/src/MarkerCluster.js b/src/MarkerCluster.js index 039ab81a4..769bf7508 100644 --- a/src/MarkerCluster.js +++ b/src/MarkerCluster.js @@ -77,7 +77,7 @@ L.MarkerCluster = L.Marker.extend({ }, //layer: The layer to try add - _recursivelyAddChildMarker: function (layer) { + _recursivelyAddLayer: function (layer) { var childReturn = null; if (!this._haveGeneratedChildClusters) { @@ -87,7 +87,7 @@ L.MarkerCluster = L.Marker.extend({ for (var i = this._childClusters.length - 1; i >= 0; i--) { var c = this._childClusters[i]; if (c._bounds.contains(layer.getLatLng())) { //TODO: Use a layer distance calculation - childReturn = c._recursivelyAddChildMarker(layer); + childReturn = c._recursivelyAddLayer(layer); addedToChild = true; break; } @@ -110,7 +110,7 @@ L.MarkerCluster = L.Marker.extend({ //Removes the given node from this marker cluster (or its child as required) //Returns true if it (or a child cluster) removes the marker - _recursivelyRemoveChildMarker: function(layer) { + _recursivelyRemoveLayer: function (layer) { var markers = this._markers, childClusters = this._childClusters, i; diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index bde6b9f4b..dc471a097 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -135,7 +135,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ //If we have already clustered we'll need to add this one to a cluster L.FeatureGroup.prototype.addLayer.call(this, layer); //TODO: If not animated maybe don't add it yet - position = this._topClusterLevel._recursivelyAddChildMarker(layer); + position = this._topClusterLevel._recursivelyAddLayer(layer); if (position) { //TODO Tidy up