[Pkg-javascript-commits] [leaflet-markercluster] 12/219: fixed tabs and spacing
Jonas Smedegaard
dr at jones.dk
Sat May 7 09:39:06 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 05f2131714de0fa862f1974bcfb59beca632b914
Author: Ken Schwencke <schwank at gmail.com>
Date: Sat Jan 4 15:44:13 2014 -0800
fixed tabs and spacing
---
src/MarkerClusterGroup.js | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 2218583..885ec44 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -694,18 +694,18 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
},
_generateInitialClusters: function () {
- var maxZoom = this._map.getMaxZoom(),
+ var maxZoom = this._map.getMaxZoom(),
radius = this.options.maxClusterRadius,
- radiusFunction = null;
+ radiusFunction = null;
- //If we just set maxClusterRadius to a single number, we need to create
- //a simple function to return that number. Otherwise, we just have to
- //use the function we've passed in.
- if(typeof radius == "number") {
- radiusFunction = function(){ return radius };
- } else if(typeof radius == "function") {
- radiusFunction = radius;
- }
+ //If we just set maxClusterRadius to a single number, we need to create
+ //a simple function to return that number. Otherwise, we just have to
+ //use the function we've passed in.
+ if(typeof radius == "number") {
+ radiusFunction = function(){ return radius };
+ } else if(typeof radius == "function") {
+ radiusFunction = radius;
+ }
if (this.options.disableClusteringAtZoom) {
maxZoom = this.options.disableClusteringAtZoom - 1;
@@ -714,11 +714,11 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
this._gridClusters = {};
this._gridUnclustered = {};
- //Set up DistanceGrids for each zoom
- for (var zoom = maxZoom; zoom >= 0; zoom--) {
- this._gridClusters[zoom] = new L.DistanceGrid(radiusFunction(zoom));
- this._gridUnclustered[zoom] = new L.DistanceGrid(radiusFunction(zoom));
- }
+ //Set up DistanceGrids for each zoom
+ for (var zoom = maxZoom; zoom >= 0; zoom--) {
+ this._gridClusters[zoom] = new L.DistanceGrid(radiusFunction(zoom));
+ this._gridUnclustered[zoom] = new L.DistanceGrid(radiusFunction(zoom));
+ }
this._topClusterLevel = new L.MarkerCluster(this, -1);
},
--
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