RectMarker<T> constructor

RectMarker<T>({
  1. ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
  2. T? key,
  3. String? bitmapSrc,
  4. int fillColor = 0x00000000,
  5. double strokeWidth = 2.0,
  6. int strokeColor = 0xff000000,
  7. List<double>? strokeDasharray,
  8. required ILatLong minLatLon,
  9. required ILatLong maxLatLon,
  10. int? strokeMinZoomLevel,
  11. double rotation = 0,
})

Implementation

RectMarker({
  super.zoomlevelRange,
  super.key,
  String? bitmapSrc,
  int fillColor = 0x00000000,
  double strokeWidth = 2.0,
  int strokeColor = 0xff000000,
  List<double>? strokeDasharray,
  required this.minLatLon,
  required this.maxLatLon,
  int? strokeMinZoomLevel,

  /// Rotation of the poi in degrees clockwise
  double rotation = 0,
}) {
  renderinstruction = RenderinstructionRect(0);
  renderinstruction.bitmapSrc = bitmapSrc;
  renderinstruction.setFillColorFromNumber(fillColor);
  renderinstruction.setStrokeColorFromNumber(strokeColor);
  renderinstruction.setStrokeWidth(strokeWidth);
  renderinstruction.setStrokeDashArray(strokeDasharray);
  renderinstruction.setBitmapMinZoomLevel(MapsforgeSettingsMgr().strokeMinZoomlevelText);
  if (strokeMinZoomLevel != null) renderinstruction.setStrokeMinZoomLevel(strokeMinZoomLevel);

  center = LatLong((minLatLon.latitude + maxLatLon.latitude) / 2, (minLatLon.longitude + maxLatLon.longitude) / 2);
}