PolylineTextMarker<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 (RenderinstructionPath always returns Boundary.zero since it does not have any information about the actual size of the rectangle).

Inheritance

Constructors

PolylineTextMarker({ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(), T? key, required String caption, double strokeWidth = 2.0, int strokeColor = 0xffffffff, int fillColor = 0xff000000, List<double>? strokeDasharray, List<ILatLong> path = const [], double fontSize = 10.0, double maxFontSize = 50.0, double repeatStart = 10, double repeatGap = 100, double? maxTextWidth})

Properties

caption String
final
hashCode int
The hash code for this object.
no setterinherited
key ↔ T?
the item this marker represents.
getter/setter pairinherited
path List<ILatLong>
no setter
renderInfo ↔ RenderInfoWay<RenderinstructionPolylineText>?
getter/setter pair
renderinstruction ↔ RenderinstructionPolylineText
latefinal
renderinstructionsZoomed Map<int, RenderinstructionPolylineText>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoomlevelRange → ZoomlevelRange
finalinherited

Methods

addLatLong(ILatLong latLong) → void
changeZoomlevel(int zoomlevel, PixelProjection projection) Future<void>
override
dispose() → void
inherited
indexOfTappedPath(TapEvent tapEvent) int
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
render(UiRenderContext renderContext) → void
Renders this object. Called by markerPainter
override
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