textVariableAnchor property
To increase the chance of placing high-priority labels on the map, you
can provide an array of text-anchor
locations: the renderer will
attempt to place the label at each location, in order, before moving
onto the next label. Use text-justify: auto
to choose justification
based on anchor position. To apply an offset, use the
text-radial-offset
or the two-dimensional text-offset
.
Type: array Options: "center" The center of the text is placed closest to the anchor. "left" The left side of the text is placed closest to the anchor. "right" The right side of the text is placed closest to the anchor. "top" The top of the text is placed closest to the anchor. "bottom" The bottom of the text is placed closest to the anchor. "top-left" The top left corner of the text is placed closest to the anchor. "top-right" The top right corner of the text is placed closest to the anchor. "bottom-left" The bottom left corner of the text is placed closest to the anchor. "bottom-right" The bottom right corner of the text is placed closest to the anchor.
Sdk Support: basic functionality with js, android, ios, macos
Implementation
final dynamic textVariableAnchor;