title: Leafletjs polyline does not show popup
body: <p>So I have several dots distributed along a map, and I'm having as well several polylines, connecting those dots. So far, so good.</p>
  <p>Now I wanted to add a <code>popup</code> to each of those polylines so they would show up when ever I click on them. It's not happening. This is what I got:</p>
  <pre><code>for (var key in JLinks) {
  
      var lat1 = JLinks[key][\&quot;lat1\&quot;];
      var lat2 = JLinks[key][\&quot;lat2\&quot;];
      var lon1 = JLinks[key][\&quot;lon1\&quot;];
      var lon2 = JLinks[key][\&quot;lon2\&quot;];
      var d    = JLinks[key][\&quot;d\&quot;];
  
      var line = L.polyline( [ [lat1,lon1], [lat2,lon2] ] );
      line.bindPopup(d);
      line.addTo(map);
  
  }
  </code></pre>
  <p>I mean, the lines are placed correctly in the map, but the popups, do not appear.</p>
  <p>I'm very new to JS or Leafletjs ... any hint may be?</p>
  <p>Thanks!</p>