Commit 2574cf6c1b851315c721b52ba34c46b0c22e6cbc
Fixing a logical error in pointToLayer
| | | | 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){ | | 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 | } |
---|
58 | function appendLabels(x){ | 58 | function appendLabels(x){ |
---|
59 | console.log("test"); | | console.log("test"); |
---|
60 | x.eachLayer(function(layer){ | 59 | x.eachLayer(function(layer){ |
---|
61 | layer.showLabel(); | 60 | layer.showLabel(); |
---|
62 | }); | 61 | }); |
---|