UiRenderContext class
A render context that holds all the necessary information for rendering a map tile.
This includes the canvas to draw on, the projection for converting geo-coordinates to pixel coordinates, and the current map rotation.
Constructors
- UiRenderContext({required UiCanvas canvas, required Mappoint reference, required PixelProjection projection, double rotationRadian = 0})
-
Creates a new
UiRenderContext.
Properties
- canvas → UiCanvas
-
The canvas for this rendering
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- projection → PixelProjection
-
The pixel projection for the current zoom level.
final
- reference → Mappoint
-
The reference mappoint for this rendering. This is usualy the center of the canvas in map pixel coordinates
final
- rotationRadian ↔ double
-
The current map rotation in radians.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- MAX_DRAWING_LAYERS → int
-
final