[Pkg-javascript-commits] [leaflet-markercluster] 180/219: Replaced instanceof L.Marker by .setOpacity check
Jonas Smedegaard
dr at jones.dk
Sat May 7 09:39:32 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 088b6ae7d8d5d4f7784f1fdbf2a659dcea7a6fae
Author: ghybs <ghybs1 at gmail.com>
Date: Thu Nov 19 11:27:32 2015 +0400
Replaced instanceof L.Marker by .setOpacity check
for consistency with previous checks in 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 059ff0b..6bea4d4 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -399,7 +399,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