PolylineTextMarker<T> constructor

PolylineTextMarker<T>({
  1. ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
  2. T? key,
  3. required String caption,
  4. double strokeWidth = 2.0,
  5. int strokeColor = 0xffffffff,
  6. int fillColor = 0xff000000,
  7. List<double>? strokeDasharray,
  8. List<ILatLong> path = const [],
  9. double fontSize = 10.0,
  10. double maxFontSize = 50.0,
  11. double repeatStart = 10,
  12. double repeatGap = 100,
  13. 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);
}