LabelTextCollision.js works well. I include
var c = L.circleMarker(whatever,{radius:5,text:"Label"}).bindTooltip('Extra stuff'); c.addTo(map);
and the circle and "Label" are drawn correctly. But the cursor remains like a hand, even when hovered over the circle, and I need to click for the tooltip to appear. TO me, this is unexpected behavior.
Solved. I found that tooltips can be made to work. The two steps are (1) replace Leaflet 1.4.0 with a more recent version, such as 1.9.4, and (2) delete the two mouse event callbacks _handleMouseHover and _handleMouseOut defined in L.LabelTextCollision.
LabelTextCollision.js works well. I include
var c = L.circleMarker(whatever,{radius:5,text:"Label"}).bindTooltip('Extra stuff'); c.addTo(map);and the circle and "Label" are drawn correctly. But the cursor remains like a hand, even when hovered over the circle, and I need to click for the tooltip to appear. TO me, this is unexpected behavior.
Solved. I found that tooltips can be made to work. The two steps are (1) replace Leaflet 1.4.0 with a more recent version, such as 1.9.4, and (2) delete the two mouse event callbacks _handleMouseHover and _handleMouseOut defined in L.LabelTextCollision.