Skip to content
Browse files

Add MarkerCluster.getBounds

  • Loading branch information...
1 parent 1eea835 commit 4883316d19e5c310288b1dd1755b1f7a1d042627 @danzel danzel committed Apr 10, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/MarkerCluster.js
View
5 src/MarkerCluster.js
@@ -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.
Something went wrong with that request. Please try again.