Update build

This commit is contained in:
danzel
2013-04-10 09:05:51 +12:00
parent 4883316d19
commit bd3d3debe4
2 changed files with 10 additions and 7 deletions
+9 -6
View File
@@ -849,13 +849,11 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
//If we were in a cluster animation at the time then the opacity and position of our child could be wrong now, so fix it
m.setLatLng(m.getLatLng());
m.setOpacity(1);
return;
} else {
cluster._recursively(bounds, newZoomLevel, 0, function (c) {
c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1);
});
}
cluster._recursively(bounds, newZoomLevel, 0, function (c) {
c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1);
});
me._animationEnd();
}, 200);
},
@@ -949,6 +947,11 @@ L.MarkerCluster = L.Marker.extend({
this._group._map.fitBounds(this._bounds);
},
getBounds: function () {
var bounds = new L.LatLngBounds();
bounds.extend(this._bounds);
return bounds;
},
_updateIcon: function () {
this._iconNeedsUpdate = true;
+1 -1
View File
File diff suppressed because one or more lines are too long