Leaflet tooltip issue on multiple markers at same location

Viewed 193

i have two different markers at same location.For the marker at the bottom it has a tooltip while the marker at the top has not. when i hover my mouse on markers the tooltip doesn't show up.

what can i do about this problem?

2 Answers

i just bind bottom marker's tooltip to top marker's tooltip and it solved my problem:

marker_at_bottom.bindTooltip(...); // that tooltip was not visible
marker_at_top.bindTooltip(marker_at_bottom.getTooltip()); // so i just assigned bottom's tooltip to top one
Related