Leaflet/Leaflet.label

Updating label content

alexcroox opened this issue · 3 comments

How do I update the label text after creation?

I've tried:

marker.label._updateContent('test');

marker.updateLabelContent('test');

marker.label.updateLabelContent('test');

tmcw commented
marker.label.setContent('test');

?

Tried that as well

Ah my fault, was trying to use an int for the value, converting it to a string first fixed it.