MarkerCaption constructor
MarkerCaption({
- required String text,
- ILatLong? latLong,
- double strokeWidth = 2.0,
- int strokeColor = 0xffffffff,
- int fillColor = 0xff000000,
- double fontSize = 10.0,
- int minZoomLevel = 0,
- int maxZoomLevel = 65535,
- Position position = Position.BELOW,
- double dy = 0,
- int strokeMinZoomLevel = DisplayModel.STROKE_MIN_ZOOMLEVEL_TEXT,
- required DisplayModel displayModel,
Implementation
MarkerCaption({
required String text,
ILatLong? latLong,
double strokeWidth = 2.0,
int strokeColor = 0xffffffff,
int fillColor = 0xff000000,
double fontSize = 10.0,
int minZoomLevel = 0,
int maxZoomLevel = 65535,
Position position = Position.BELOW,
double dy = 0,
int strokeMinZoomLevel = DisplayModel.STROKE_MIN_ZOOMLEVEL_TEXT,
required DisplayModel displayModel,
}) : assert(strokeWidth >= 0),
assert(minZoomLevel >= 0),
assert(minZoomLevel <= maxZoomLevel) /*assert(text.length > 0)*/,
super(
latLong: latLong ?? const LatLong(0, 0),
caption: text,
fillColor: fillColor,
fontSize: fontSize,
strokeColor: strokeColor,
strokeWidth: strokeWidth,
minZoomLevel: minZoomLevel,
maxZoomLevel: maxZoomLevel,
maxTextWidth: displayModel.getMaxTextWidth(),
position: position,
displayModel: displayModel,
dy: dy,
strokeMinZoomLevel: strokeMinZoomLevel,
) {}