Android webgl maps reference unstable LabelOptions | 2GIS Documentation

LabelOptions

Label initialization options.

new <init>(anchor, color, coordinates, fontSize, haloColor, haloRadius, letterSpacing, lineHeight, maxZoom, minZoom, text, zIndex, image, offset, relativeAnchor)

Label initialization options.

Parameters
anchor
color
coordinates
fontSize
haloColor
haloRadius
letterSpacing
lineHeight
maxZoom
minZoom
text
zIndex
image
offset
relativeAnchor
Methods
Properties

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

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

Geographical coordinates of label center longitude,latitude.

Text size.

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

Use haloRadius to add background behind each letter.

Space between each letter.

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

Maximum display zoom level of the label.

Minimum display zoom level of the label.

Label's text.

Draw order.

Image background for the label.

The offset distance of text box from its relativeAnchor. Positive values indicate right and down, while negative values indicate left and up.

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.