[Pkg-javascript-commits] [leaflet-markercluster] 82/219: Update MarkerCluster.QuickHull.js

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:14 UTC 2016


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

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

commit 0fe481dab6a968ab1a49f711dd9425a519dfe25c
Author: olive380 <olive380 at users.noreply.github.com>
Date:   Tue Aug 4 19:46:25 2015 +0200

    Update MarkerCluster.QuickHull.js
---
 src/MarkerCluster.QuickHull.js | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/MarkerCluster.QuickHull.js b/src/MarkerCluster.QuickHull.js
index ed2880c..c02c0fb 100644
--- a/src/MarkerCluster.QuickHull.js
+++ b/src/MarkerCluster.QuickHull.js
@@ -107,12 +107,12 @@ Retrieved from: http://en.literateprograms.org/Quickhull_(Javascript)?oldid=1843
 		 */
 		getConvexHull: function (latLngs) {
 			// find first baseline
-                	var maxLat = false, minLat = false,
-			   	maxLng = false, minLng = false,
-			    	maxLatPt = null, minLatPt = null,
-			    	maxLngPt = null, minLngPt = null,
-			    	maxPt = null, minPt = null,
-			    	i;
+			var maxLat = false, minLat = false,
+				maxLng = false, minLng = false,
+				maxLatPt = null, minLatPt = null,
+				maxLngPt = null, minLngPt = null,
+				maxPt = null, minPt = null,
+				i;
 
 			for (i = latLngs.length - 1; i >= 0; i--) {
 				var pt = latLngs[i];
@@ -125,20 +125,20 @@ Retrieved from: http://en.literateprograms.org/Quickhull_(Javascript)?oldid=1843
 					minLat = pt.lat;
 				}
 				if (maxLng === false || pt.lng > maxLng) {
-				        maxLngPt = pt;
+					maxLngPt = pt;
 					maxLng = pt.lng;
 				}
 				if (minLng === false || pt.lng < minLng) {
-				        minLngPt = pt;
+					minLngPt = pt;
 					minLng = pt.lng;
 				}
 			}
 			
 			if (minLat !== maxLat) {
-			      	minPt = minLatPt;
+				minPt = minLatPt;
 				maxPt = maxLatPt;
 			} else {
-			        minPt = minLngPt;
+				minPt = minLngPt;
 				maxPt = maxLngPt;			
 			}
 			

-- 
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