[Pkg-javascript-commits] [leaflet-markercluster] 20/128: Replaced instanceof L.Marker by .setOpacity check
Jonas Smedegaard
dr at jones.dk
Sun Apr 16 06:25:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit a4ec12cebad3b404c7acb59fa55b8889b14c55d7
Author: ghybs <ghybs1 at gmail.com>
Date: Thu Nov 19 11:32:35 2015 +0400
Replaced instanceof L.Marker by .setOpacity check
for consistency with previous checks of markercluster.spiderfier.
---
src/MarkerCluster.Spiderfier.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index 1717933..a9d6162 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -420,7 +420,7 @@ L.MarkerClusterGroup.include({
this._featureGroup.removeLayer(layer);
// L.Circle can be spiderfied, but only Markers have setOpacity and setZIndexOffset methods.
- if (layer instanceof L.Marker) {
+ if (layer.setOpacity) {
layer.setOpacity(1);
//Position will be fixed up immediately in _animationUnspiderfy
layer.setZIndexOffset(0);
--
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