Skip to main content
1 of 2
juminet
  • 1.3k
  • 8
  • 14

The method bindLabel from the plugin Leaflet.label is deprecated but its functionality was included in Leaflet core from version 1.0 using tooltip.

This should work within your code:

var marker = L.marker([ latitude, longitude ], {
         icon : iconInfo,
         iconAnchor: [10, 10],
         labelAnchor: [6, 0]
     }).bindTooltip(displayingText, {
         direction: 'bottom',
         noHide : true
     }).addTo(leaf_map);
juminet
  • 1.3k
  • 8
  • 14