update build

This commit is contained in:
danzel
2013-08-26 15:39:46 +12:00
parent 4f40622dfe
commit ac3e7d4fea
2 changed files with 10 additions and 1 deletions

View File

@ -110,6 +110,15 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
removeLayer: function (layer) {
if (layer instanceof L.LayerGroup)
{
var array = [];
for (var i in layer._layers) {
array.push(layer._layers[i]);
}
return this.removeLayers(array);
}
//Non point layers
if (!layer.getLatLng) {
this._nonPointGroup.removeLayer(layer);

File diff suppressed because one or more lines are too long