[Pkg-javascript-commits] [leaflet-markercluster] 03/18: Refactor(options): move clusterPane into options field
Jonas Smedegaard
dr at jones.dk
Sat Jan 6 19:29:06 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/1.2.0_dfsg-1
in repository leaflet-markercluster.
commit 61e06292d30ba5b9aa83ef3fe1eda758d30c0cd8
Author: ghybs <ghybs1 at gmail.com>
Date: Thu Oct 19 08:06:17 2017 +0400
Refactor(options): move clusterPane into options field
like most other options. There is no real need to set it "manually" during initialization phase, instead of letting Leaflet class mechanism retrieve it automatically.
---
src/MarkerClusterGroup.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 0c384fd..123e63d 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -7,6 +7,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
options: {
maxClusterRadius: 80, //A cluster will cover at most this many pixels from its center
iconCreateFunction: null,
+ clusterPane: L.Marker.prototype.options.pane,
spiderfyOnMaxZoom: true,
showCoverageOnHover: true,
@@ -49,9 +50,6 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
if (!this.options.iconCreateFunction) {
this.options.iconCreateFunction = this._defaultIconCreateFunction;
}
- if (!this.options.clusterPane) {
- this.options.clusterPane = L.Marker.prototype.options.pane;
- }
this._featureGroup = L.featureGroup();
this._featureGroup.addEventParent(this);
--
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