Options
All
  • Public
  • Public/Protected
  • All
Menu

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 the Icon class.

Hierarchy

  • MarkerLabel

Index

Properties

className?: string

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.

defaultvalue

'' (empty string)

color?: string

The color of the label text.

defaultvalue

'black'

fontFamily?: string

The font family of the label text (equivalent to the CSS font-family property).

fontSize?: string

The font size of the label text (equivalent to the CSS font-size property).

defaultvalue

'14px'

fontWeight?: string

The font weight of the label text (equivalent to the CSS font-weight property).

text: string

The text to be displayed in the label.

Generated using TypeDoc