RectMarker<T> constructor
RectMarker<T> ({
- ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
- T? key,
- String? bitmapSrc,
- int fillColor = 0x00000000,
- double strokeWidth = 2.0,
- int strokeColor = 0xff000000,
- List<
double> ? strokeDasharray, - required ILatLong minLatLon,
- required ILatLong maxLatLon,
- int? strokeMinZoomLevel,
- 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);
}