[Pkg-javascript-commits] [leaflet-markercluster] 332/479: Add MarkerCluster.getBounds

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 4883316d19e5c310288b1dd1755b1f7a1d042627
Author: danzel <danzel at localhost.geek.nz>
Date:   Wed Apr 10 09:04:14 2013 +1200

    Add MarkerCluster.getBounds
---
 src/MarkerCluster.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/MarkerCluster.js b/src/MarkerCluster.js
index 2487901..7c493d4 100644
--- a/src/MarkerCluster.js
+++ b/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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list