MvtPaintBuilder

Constructors

Link copied to clipboard
constructor()

Properties

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

Functions

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

Constant line-casing shorthand. The casing draws as a wider stroke under line / lineWidth, giving the Mapbox-style road-shoulder effect. width is the total casing stroke width; visible thickness on each side of the fill = (width - lineWidth) / 2.

Link copied to clipboard
fun dasharray(vararg dashes: Float)

Mapbox line-dasharray shorthand. Alternating dash + gap lengths (e.g. dasharray(2f, 2f) = even dashes/gaps; dasharray(3f, 1f, 1f, 1f) = long-short-short). Dashed features bypass MvtBatchedLineTile and render as per-feature earth.worldwind.shape.Paths.

Link copied to clipboard
fun extrusion(heightMeters: Float, baseMeters: Float = 0.0f)

Constant 3D-extrusion shorthand. Polygon features matching this rule extrude to heightMeters above terrain (optionally starting baseMeters above ground). Renders via OsmBuildingsTile — same path the OSM Buildings layer uses, so styling reads as fill-extrusion-height in Mapbox terms.

Link copied to clipboard
fun fill(color: Color)

Constant fill color shorthand.

Link copied to clipboard
fun gradient(expression: MvtExpression<Color>)

Mapbox line-gradient — set a color expression that's evaluated along the line's arc-length parameter. Typical use: ["interpolate", ["linear"], ["line-progress"], 0, "green", 0.5, "yellow", 1, "red"] for a route-elevation tint. The layer subdivides each polyline into MvtStyleRule.PaintSpec.GRADIENT_SUBDIVISIONS piecewise-constant segments for rendering.

Link copied to clipboard
fun icon(image: String, block: MvtIconBuilder.() -> Unit = {})

Declare a sprite-atlas icon for matching POINT features. image is the atlas entry name (Mapbox-style {property} placeholders are expanded against the feature's properties at resolve time).

Link copied to clipboard
fun line(color: Color, width: Float = 1.0f)

Constant line color + width shorthand.

Link copied to clipboard
fun text(field: String, block: MvtTextBuilder.() -> Unit = {})

Declare a text label for matching features. field names the feature property to read for the label string (typically "name"). Configure color / size / halo / placement via the MvtTextBuilder receiver. Default placement is POINT (matches POINT features); set placement = MvtStyleRule.LabelPlacement.LINE to label LINESTRING features at their midpoint along the local tangent.