RectMarker<T> class

A Marker which draws a rectangle specified by the min/max lat/lon attributes. Currently there is no way to position captions other than in the center of the rectangle (RenderinstructionRect always returns Boundary.zero since it does not have any information about the actual size of the rectangle).

Inheritance

Constructors

RectMarker({ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(), T? key, String? bitmapSrc, int fillColor = 0x00000000, double strokeWidth = 2.0, int strokeColor = 0xff000000, List<double>? strokeDasharray, required ILatLong minLatLon, required ILatLong maxLatLon, int? strokeMinZoomLevel, double rotation = 0})

Properties

captions List<Caption>
no setterinherited
center ↔ ILatLong
latefinal
hashCode int
The hash code for this object.
no setterinherited
key ↔ T?
the item this marker represents.
getter/setter pairinherited
maxLatLon → ILatLong
final
minLatLon → ILatLong
final
nodeProperties ↔ NodeProperties?
getter/setter pair
renderInfo ↔ RenderInfoWay<RenderinstructionRect>?
getter/setter pair
renderinstruction ↔ RenderinstructionRect
latefinal
renderinstructionsZoomed Map<int, RenderinstructionRect>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoomlevelRange → ZoomlevelRange
finalinherited

Methods

addCaption({required String caption, double strokeWidth = 2.0, int strokeColor = 0xffffffff, int fillColor = 0xff000000, double fontSize = 10.0, ZoomlevelRange? zoomlevelRange, MapPositioning position = MapPositioning.BELOW, double dy = 0, int? strokeMinZoomLevel, double gap = 1}) → Caption?
inherited
changeZoomlevel(int zoomlevel, PixelProjection projection) Future<void>
override
changeZoomlevelCaptions(int zoomlevel, PixelProjection projection) Future<void>
inherited
dispose() → void
inherited
getReference() → ILatLong
hasCaptions() bool
inherited
isTapped(TapEvent tapEvent) bool
returns true if the position specified by tapEvent is in the area of this marker. Note that tapEvent represents the position at the time the tap has been executed.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllCaptions() → void
inherited
removeCaption(Caption caption) → void
inherited
removeCaptionPerText(String caption) → void
inherited
render(UiRenderContext renderContext) → void
Renders this object. Called by markerPainter
override
renderCaptions({required UiRenderContext renderContext, required NodeProperties nodeProperties}) → void
inherited
searchForSymbolBoundary(String symbolId) → MapRectangle?
setAndLoadBitmapSrc(String bitmapSrc) Future<void>
setBitmapColorFromNumber(int color) Future<void>
setFillColorFromNumber(int color) Future<void>
setStrokeColorFromNumber(int color) Future<void>
shouldPaint(BoundingBox boundary, int zoomlevel) bool
returns true if this marker is within the visible boundary and therefore should be painted. Since the initResources() is called only if shouldPoint() returns true, do not test for available resources here.
override
toString() String
A string representation of this object.
inherited

Operators

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