CaptionMarker<T> constructor

CaptionMarker<T>({
  1. ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
  2. T? key,
  3. required ILatLong latLong,
  4. MapPositioning position = MapPositioning.CENTER,
  5. bool rotateWithMap = false,
  6. required String caption,
  7. int bitmapColor = 0xff000000,
  8. double strokeWidth = 2.0,
  9. int strokeColor = 0xffffffff,
  10. int fillColor = 0xff000000,
  11. double fontSize = 10.0,
  12. 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;
}