AreaMarker<T> constructor

AreaMarker<T>({
  1. ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
  2. T? key,
  3. double strokeWidth = 2.0,
  4. int strokeColor = 0xff000000,
  5. int fillColor = 0x00000000,
  6. List<double>? strokeDasharray,
  7. List<ILatLong> path = const [],
  8. int? strokeMinZoomLevel,
})

Implementation

AreaMarker({
  super.zoomlevelRange,
  super.key,
  double strokeWidth = 2.0,
  int strokeColor = 0xff000000,
  int fillColor = 0x00000000,
  List<double>? strokeDasharray,
  List<ILatLong> path = const [],
  int? strokeMinZoomLevel,
}) {
  _path = path.isEmpty ? Waypath.empty() : Waypath(path: path);
  renderinstruction = RenderinstructionArea(0);
  renderinstruction.setStrokeColorFromNumber(strokeColor);
  renderinstruction.setStrokeWidth(strokeWidth);
  renderinstruction.setStrokeDashArray(strokeDasharray);
  renderinstruction.setFillColorFromNumber(fillColor);
  if (strokeMinZoomLevel != null) renderinstruction.setStrokeMinZoomLevel(strokeMinZoomLevel);
}