ShapePainterCaption class

Shape painter for rendering text captions on the map.

This painter is responsible for drawing text labels for nodes (e.g., POIs) and ways (e.g., streets). It handles text styling, including fill and stroke (for halo effects), font properties, and positioning. It also manages text rotation to ensure labels remain horizontal even when the map is rotated.

Properties

hashCode int
The hash code for this object.
no setterinherited
paintBack UiPaint?
The paint used for the text stroke (halo). Null if the stroke is transparent.
getter/setter pair
paintFront UiPaint?
The paint used for the text fill. Null if the fill is transparent.
getter/setter pair
renderinstruction → RenderinstructionCaption
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textPaint ↔ UiTextPaint
getter/setter pair

Methods

calculatePath(List<List<Mappoint>> coordinatesAbsolute, Mappoint reference, double dy) UiPath
Calculates a UiPath from a list of absolute geo-coordinates.
inherited
dispose() → void
ShapePainterLineSymbol and ShapePainterSymbol holds SymbolImage instances which must be disposed after use.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reinit() → void
(Re)Initializes the paint objects based on the current render instruction.
renderNode(RenderInfo<Renderinstruction> renderInfo, RenderContext renderContext, NodeProperties nodeProperties) → void
Renders a caption for a node (e.g., a POI).
renderWay(RenderInfo<Renderinstruction> renderInfo, RenderContext renderContext, WayProperties wayProperties) → void
Renders a caption for a way (e.g., a street name).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create(RenderinstructionCaption renderinstruction) Future<ShapePainterCaption>
Creates a new caption shape painter with asynchronous initialization.