i use
marker.bindTooltip like this
marker.bindTooltip("<a class=\"" + c + "\" href=\"" + r + "\" title=\"" + n + "\">" + n + "</a>", {
permanent: true,
interactive: true,
direction: "top",
className: "tip"
})
it works perfectly with leaflet1.71
with leaflet 1.91 on canvas i get
Cannot read properties of undefined (reading 'setAttribute') at e._setAriaDescribedByOnLayer
it work if i dont put my markers on canvas
or
if in this part of leaflet1.91
openTooltip: function (t) {
return (
this._tooltip && this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map)
, this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this)
),
this
);
}
i remove
, this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this)