The className property of the label's element (equivalent to the
element's class attribute). Multiple space-separated CSS classes can
be added. The font color, size, weight, and family can only be set via
the other properties of MarkerLabel
. CSS classes should not
be used to change the position nor orientation of the label (e.g. using
translations and rotations) if also using marker
collision management.
The color of the label text.
The font family of the label text (equivalent to the CSS font-family property).
The font size of the label text (equivalent to the CSS font-size property).
The font weight of the label text (equivalent to the CSS font-weight property).
The text to be displayed in the label.
Generated using TypeDoc
These options specify the appearance of a marker label. A marker label is a string (often a single character) which will appear inside the marker. If you are using it with a custom marker, you can reposition it with the
labelOrigin
property in theIcon
class.