Skip to main content
LabelBackgroundStyle
Defines the style for the background of a label overlay.
NameTypeDescription
fill?stringFill color for the background.
opacity?numberOpacity for the background.
padding?numberPadding to leave around the label. Defaults to 5.
rx?numberHorizontal radius for the background rectangle's corners.
ry?numberVertical radius for the background rectangle's corners. If you provide rx but not this, ry will take the value of rx.
stroke?stringStroke color for the background.
strokeOpacity?numberStroke opacity for the background.
strokeWidth?numberStroke width for the background.