LabelOptions | MapGL | 2GIS Documentation

LabelOptions

Label initialization options.

Properties
number[]

The position in pixels of the "tip" of the label relative to its center.

undefinedstring

Text color in hexadecimal RGB (#ff0000) or RGBA (#ff0000ff) format.

number[]

Geographical coordinates of label center [longitude, latitude].

undefinednumber

Text size.

undefinedstring

Color of letters background (when haloRadius is specified). Same format as for color.

undefinednumber

Use haloRadius to add background behind each letter.

Image background for the label

undefinednumber

Space between each letter.

undefinednumber

For multiline label lineHeight specify how far lines between each other.

undefinednumber

Maximum display zoom level of the label.

undefinednumber

Minimum display zoom level of the label.

string

Label's text.

undefinednumber

Draw order.