InputMarkerLabelOptions
Initialization options of the marker's label.
number[]
The offset distance of text box from its relativeAnchor
.
Positive values indicate left and up, while negative values indicate right and down.
DEPRECATED! Will be removed in the next major release, use the offset
option instead.
undefined
string
Text color in hexadecimal RGB (#ff0000
) or RGBA (#ff0000ff
) format.
undefined
number
Text size.
undefined
string
Color of letters background (when haloRadius
is specified). Same format as for color
.
undefined
number
Use haloRadius
to add background behind each letter.
undefined
number
Space between each letter.
undefined
number
For multiline label lineHeight
specify how far lines between each other.
undefined
number
Maximum display zoom level of the label.
undefined
number
Minimum display zoom level of the label.
number[]
The offset distance of text box from its relativeAnchor
.
Positive values indicate right and down, while negative values indicate left and up.
number[]
The relative, from 0 to 1 in each dimension, coordinates of the text box "tip". relative to its top left corner, for example:
[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.
The label will be placed so that this point is at geographical coordinates
respects the absolute offset
.
string
Label's text.
undefined
number
Draw order.