Permalink
Browse files

Add MarkerCluster.getBounds

  • Loading branch information...
danzel committed Apr 9, 2013
1 parent 1eea835 commit 4883316d19e5c310288b1dd1755b1f7a1d042627
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/MarkerCluster.js
View
@@ -47,6 +47,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;

0 comments on commit 4883316

Please sign in to comment.