Mvt Paint Builder
Properties
Functions
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.
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.
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.
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.