velocat
velocat

Reputation: 117

Hide default marker tooltip in leaflet

I am creating a custom marker tooltip:

marker.bindTooltip("title");
marker.addTo(map);

However, after opening the custom one, after a while the "default" tooltip appears additionally.

marker tooltip

How to hide the default tooltip?

Upvotes: 2

Views: 710

Answers (1)

IvanSanchez
IvanSanchez

Reputation: 19069

Set the title option of your L.Marker to an empty string.

Upvotes: 2

Related Questions