Icon Paint
Icon style options (Apple IconPaint). Prefer placement / source for new code; named constructor parameters (image, atlas, allowOverlap, …) remain supported for existing call sites.
Constructors
Properties
Whether icons can overlap other icons.
Positioning anchor of the icon.
Per-feature data value for custom shader as v_factor (JS paint.icon.factor).
Per-feature icon height in JS icon pixels. See iconWidth; both must be set for the per-axis path to apply.
The name of the image to display.
Offset of the icon from its anchor position.
Padding around the icon.
Whether the icon pitches with the map (Apple placement.pitchWithMap).
Placement shared with other symbol types (Apple IconPaint.placement). Default allowOverlap = true preserves prior Android icon defaults.
Whether the icon rotates with map bearing (Apple placement.rotateWithMap).
Constant rotation offset in degrees (e.g. -90 for wind barb/arrow base tilt). When rotationUsesDataDirection is true, Mapbox icon rotation is dir + rotation from encoded features.
When true, rotationExpression uses dir + rotation via Expression.get("dir"); when false, rotation is constant.
Source used to resolve the icon image (Apple IconPaint.source).
Functions
Shallow copy for tests / paint mutation helpers (IconPaint is no longer a data class).