PolylineTextMarker<T> constructor
PolylineTextMarker<T> ({
- 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,
Implementation
PolylineTextMarker({
super.zoomlevelRange,
super.key,
required this.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,
}) {
if (path.isNotEmpty) _path.addAll(path);
renderinstruction = RenderinstructionPolylineText(0);
renderinstruction.setStrokeColorFromNumber(strokeColor);
renderinstruction.setStrokeWidth(strokeWidth);
renderinstruction.setStrokeDashArray(strokeDasharray);
renderinstruction.setFillColorFromNumber(fillColor);
renderinstruction.setFontSize(fontSize);
renderinstruction.setRepeatStart(repeatStart);
renderinstruction.setRepeatGap(repeatGap);
renderinstruction.setMaxFontSize(maxFontSize);
if (maxTextWidth != null) renderinstruction.setMaxTextWidth(maxTextWidth);
}