From a341aeb8f840bb5f2fa4ad8b190210bf09153543 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 22 Mar 2014 01:02:39 +0000 Subject: [PATCH] player tracker: multiPolyLine removed in leaflet 0.8-dev - so let's work without it --- plugins/player-tracker.user.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/player-tracker.user.js b/plugins/player-tracker.user.js index ece79b0a..ede0e3cf 100644 --- a/plugins/player-tracker.user.js +++ b/plugins/player-tracker.user.js @@ -399,7 +399,9 @@ window.plugin.playerTracker.drawData = function() { dashArray: "5,8" }; - L.multiPolyline(polyLine, opts).addTo(plugin.playerTracker.drawnTracesEnl); + $.each(polyLine,function(ind,poly) { + L.polyline(poly, opts).addTo(plugin.playerTracker.drawnTracesEnl); + }); }); $.each(polyLineByAgeRes, function(i, polyLine) { if(polyLine.length === 0) return true; @@ -412,7 +414,9 @@ window.plugin.playerTracker.drawData = function() { dashArray: "5,8" }; - L.multiPolyline(polyLine, opts).addTo(plugin.playerTracker.drawnTracesRes); + $.each(polyLine, function(ind,poly) { + L.polyline(poly, opts).addTo(plugin.playerTracker.drawnTracesRes); + }); }); }