Leaflet / Leaflet.label

Leaflet.label is plugin for adding labels to markers & shapes on leaflet powered maps.
MIT License
465 stars 225 forks source link

Updating label content #127

Closed alexcroox closed 9 years ago

alexcroox commented 9 years ago

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 9 years ago
marker.label.setContent('test');

?

alexcroox commented 9 years ago

Tried that as well

alexcroox commented 9 years ago

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