[Pkg-javascript-commits] [leaflet-markercluster] 11/128: Fix for the latest leaflet master changes. fixes #289
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 a1e06288d988d92192219c1f2768ef9230b49c96
Author: danzel <danzel at localhost.geek.nz>
Date: Mon Apr 7 16:17:49 2014 +1200
Fix for the latest leaflet master changes. fixes #289
---
src/MarkerCluster.Spiderfier.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index c30228b..d44b348 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -209,7 +209,7 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
//Add Legs. Force the SVG renderer so we can animate
- leg = new L.Polyline([me._latlng, newPos], { weight: 1.5, color: '#222', opacity: initialLegOpacity, renderer: L.SVG.instance });
+ leg = new L.Polyline([me._latlng, newPos], { weight: 1.5, color: '#222', opacity: initialLegOpacity });
map.addLayer(leg);
m._spiderLeg = leg;
@@ -368,8 +368,7 @@ L.MarkerClusterGroup.include({
this._map.on('zoomend', this._noanimationUnspiderfy, this);
if (!L.Browser.touch) {
- this._map.addLayer(L.SVG.instance);
- //this._map._initPathRoot();
+ this._map.getRenderer(this);
//Needs to happen in the pageload, not after, or animations don't work in webkit
// http://stackoverflow.com/questions/8455200/svg-animate-with-dynamically-added-elements
//Disable on touch browsers as the animation messes up on a touch zoom and isn't very noticable
--
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