Icon Paint
data class IconPaint(var allowOverlap: StyleValue<Boolean> = StyleValue.Constant(false), var image: StyleValue<String>? = null, var size: StyleValue<Double>? = null, var iconSize: IconSize? = null, var atlas: IconAtlas? = null, var anchor: StyleValue<Anchor> = StyleValue.Constant(Anchor.CENTER), var offset: StyleValue<AnchorOffset> = StyleValue.Constant(AnchorOffset()), var padding: StyleValue<Double> = StyleValue.Constant(0.0), var rotation: Double = 0.0, var rotationUsesDataDirection: Boolean = false) : Paint
Constructors
Link copied to clipboard
constructor(allowOverlap: StyleValue<Boolean> = StyleValue.Constant(false), image: StyleValue<String>? = null, size: StyleValue<Double>? = null, iconSize: IconSize? = null, atlas: IconAtlas? = null, anchor: StyleValue<Anchor> = StyleValue.Constant(Anchor.CENTER), offset: StyleValue<AnchorOffset> = StyleValue.Constant(AnchorOffset()), padding: StyleValue<Double> = StyleValue.Constant(0.0), rotation: Double = 0.0, rotationUsesDataDirection: Boolean = false)
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
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.
Link copied to clipboard
When true, rotationExpression uses dir + rotation via Expression.get("dir"); when false, rotation is constant.
Link copied to clipboard