Symbol Placement Paint
data class SymbolPlacementPaint(var allowOverlap: StyleValue<Boolean> = StyleValue.Constant(false), 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: StyleValue<Double> = StyleValue.Constant(0.0), var rotateWithMap: Boolean = false, var pitchWithMap: Boolean = false)
Shared symbol placement options (Apple SymbolPlacementPaint). Used by IconPaint.placement and GridLayerPaint.symbol.
Constructors
Link copied to clipboard
constructor(allowOverlap: StyleValue<Boolean> = StyleValue.Constant(false), anchor: StyleValue<Anchor> = StyleValue.Constant(Anchor.CENTER), offset: StyleValue<AnchorOffset> = StyleValue.Constant(AnchorOffset()), padding: StyleValue<Double> = StyleValue.Constant(0.0), rotation: StyleValue<Double> = StyleValue.Constant(0.0), rotateWithMap: Boolean = false, pitchWithMap: Boolean = false)
Properties
Link copied to clipboard
Whether this symbol may overlap others (icon-allow-overlap / text-allow-overlap).
Link copied to clipboard
Anchor relative to the feature (icon-anchor / text-anchor).
Link copied to clipboard
Pixel offset from the anchor (icon-offset / text-offset).
Link copied to clipboard
Extra collision padding in pixels.
Link copied to clipboard
When true, the symbol tilts with camera pitch.
Link copied to clipboard
When true, rotation tracks map bearing.
Link copied to clipboard
Rotation in degrees.