ShapePainterArea class

Shape painter for rendering filled polygon areas on the map canvas.

This painter handles the rendering of closed polygon areas such as buildings, parks, water bodies, and other filled regions. It supports both solid fill colors and bitmap pattern fills, along with optional stroke outlines.

Key features:

  • Solid color fills and bitmap pattern fills
  • Stroke outlines with customizable properties
  • Asynchronous initialization for bitmap loading
  • Task queue management for thread safety

Properties

fill UiPaint?
Paint object for area fill rendering, null if transparent.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
renderinstruction → RenderinstructionArea
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stroke UiPaint?
Paint object for area stroke rendering, null if 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 bitmap patterns 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
renderWay(RenderInfo<Renderinstruction> renderInfo, RenderContext renderContext, WayProperties wayProperties) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create(RenderinstructionArea renderinstruction) Future<ShapePainterArea>
Creates a new area shape painter with asynchronous initialization.