From 2574cf6c1b851315c721b52ba34c46b0c22e6cbc Mon Sep 17 00:00:00 2001 From: Arvind Date: Tue, 29 Jan 2013 21:19:43 +0530 Subject: [PATCH] Fixing a logical error in pointToLayer --- main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.js b/main.js index 5a39a49..6168037 100644 --- a/main.js +++ b/main.js @@ -45,7 +45,7 @@ function loadWayPoints(){ m.on('click',function(e){ e.target.bindPopup("").openPopup(); }); - if(i == wayPointList.length-1){ + if(i == wayPointList.length){ this.appendLabels(photos); } return m; @@ -56,7 +56,6 @@ function loadWayPoints(){ } } function appendLabels(x){ - console.log("test"); x.eachLayer(function(layer){ layer.showLabel(); }); -- 1.7.10.4