MvtTextBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Constant or zoom-interpolated text color. Use MvtZoomInterp.constant for a fixed value.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Halo (outline) behind text. Use halo shorthand for the common case.

Link copied to clipboard
Link copied to clipboard

Mapbox text-max-width (em units). Unset = no word-wrap.

Link copied to clipboard

Label placement strategy — POINT (default, anchored at feature geo) or LINE (single label at the midpoint of a LINESTRING, rotated along the local tangent).

Link copied to clipboard

Constant or zoom-interpolated text size in pixels.

Link copied to clipboard

Mapbox text-transform: uppercase — render in all caps (country/region convention).

Functions

Link copied to clipboard
fun color(c: Color)

Constant-color shorthand for color.

Link copied to clipboard
fun halo(color: Color, width: Float)

Constant halo shorthand — colour + width together.

Link copied to clipboard
fun size(px: Float)

Constant-size shorthand for size.