I have made several custom buttons in Leafletjs - now I would like to add a hover-over tooltip to explain what the button does. I've tried putting a "title:" and "tooltip:" in the options but still do not see the text when I hover over the control.
var load = L.Control.extend({
options: {
position: 'topright'
},
onAdd: function(map) {
var container = L.DomUtil.create('div', 'leaflet-bar leaflet-control leaflet-control-load-points');
//container.style.backgroundColor = 'white';
container.style.width = '25px';
container.style.height = '25px';
container.onclick = function() {
clear_markers(markers);
load_markers(markers);
}
return container;
},
});