I use Leaflet plugin extra-markers If I add a marker with the description of the icon:

var redMarker = L.ExtraMarkers.icon({ icon: 'fa-number', number: point.displayValue, markerColor: TYPES[point.displayType], svg: true }); 

That's all OK. While point.displayValue will not be more than two characters.

Yandex has the type of label islands # greenStretchyIcon - which is stretched depending on the content in iconContent.

There were ideas to use or as a custom icon, but did not take off ..

Is it possible to make a label with a stretching text field inside on a leaflet?

0