2

Is there a possibility to bind a mouseover event to a (multi)polyline which shows detailed information to that part of the line? I found some examples for polygons but they do not work on polylines.

This is how my multiPolyline is created. The ajax function loads all coordinates.

$.ajax({
    url: 'getline.php?id=' + q,
    success: function(data) {
        var line = L.multiPolyline(eval('[' + data + ']'), {
            color: 'blue',
            weight: 5,
            smoothFactor: 1,
            opacity: 1
        }).addTo(map);
    }
});
Chris Forrence
  • 10,042
  • 11
  • 48
  • 64
Thomas1703
  • 1,152
  • 5
  • 16
  • 33

0 Answers0