Skip to content

Commit

Permalink
Add MarkerCluster.getBounds
Browse files Browse the repository at this point in the history
  • Loading branch information
danzel committed Apr 9, 2013
1 parent 1eea835 commit 4883316
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/MarkerCluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4883316

Please sign in to comment.