ShapePainterRect class

Shape painter for rendering rectangles on the map.

This painter is responsible for drawing rectangles, which can be used to represent building footprints or other rectangular areas. It supports both solid fill colors and bitmap pattern fills, along with optional stroke outlines.

Properties

fill UiPaint?
The paint used for the rectangle fill. Null if the fill is transparent.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
renderinstruction → RenderinstructionRect
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stroke UiPaint?
The paint used for the rectangle stroke. Null if the stroke is transparent.
latefinal

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
init() Future<void>
Initializes the shape painter by loading the bitmap pattern if specified.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderNode(RenderInfo<Renderinstruction> renderInfo, RenderContext renderContext, NodeProperties nodeProperties) → void
Rectangles are not rendered for nodes.
renderWay(RenderInfo<Renderinstruction> renderInfo, RenderContext renderContext, WayProperties wayProperties) → void
Renders a rectangle for a way.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create(RenderinstructionRect renderinstruction) Future<ShapePainterRect>
Creates a new rectangle shape painter with asynchronous initialization.