Commit 2574cf6c1b851315c721b52ba34c46b0c22e6cbc

  • avatar
  • arvind
  • Tue Jan 29 21:19:43 IST 2013
Fixing a logical error in pointToLayer
  • Diff rendering mode:
  • inline
  • side by side

main.js

45 m.on('click',function(e){45 m.on('click',function(e){
46 e.target.bindPopup("<img src='"+feature.properties.link1_href+"' style='height:200px;width:200px;'>").openPopup();46 e.target.bindPopup("<img src='"+feature.properties.link1_href+"' style='height:200px;width:200px;'>").openPopup();
47 });47 });
48 if(i == wayPointList.length-1){
48 if(i == wayPointList.length){
49 this.appendLabels(photos);49 this.appendLabels(photos);
50 }50 }
51 return m;51 return m;
56 }56 }
57}57}
58function appendLabels(x){58function appendLabels(x){
59 console.log("test");
60 x.eachLayer(function(layer){59 x.eachLayer(function(layer){
61 layer.showLabel();60 layer.showLabel();
62 });61 });