CaptionMarker<T> constructor
CaptionMarker<T> ({
- ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
- T? key,
- required ILatLong latLong,
- MapPositioning position = MapPositioning.CENTER,
- bool rotateWithMap = false,
- required String caption,
- int bitmapColor = 0xff000000,
- double strokeWidth = 2.0,
- int strokeColor = 0xffffffff,
- int fillColor = 0xff000000,
- double fontSize = 10.0,
- double rotation = 0,
Implementation
CaptionMarker({
super.zoomlevelRange,
super.key,
required super.latLong,
MapPositioning position = MapPositioning.CENTER,
bool rotateWithMap = false,
required this.caption,
int bitmapColor = 0xff000000,
double strokeWidth = 2.0,
int strokeColor = 0xffffffff,
int fillColor = 0xff000000,
double fontSize = 10.0,
/// Rotation of the poi in degrees clockwise
double rotation = 0,
}) {
renderinstruction = RenderinstructionCaption(0);
renderinstruction.setStrokeWidth(strokeWidth);
renderinstruction.setStrokeColorFromNumber(strokeColor);
renderinstruction.setFillColorFromNumber(fillColor);
renderinstruction.setFontSize(fontSize);
renderinstruction.position = position;
renderinstruction.rotateWithMap = rotateWithMap;
}