Skip to content

Tooltip #12

Description

@xrisr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions