BMFCircle.withMap constructor

BMFCircle.withMap(
  1. Map map
)

Implementation

BMFCircle.withMap(Map map) {
  if (null == map) {
    return;
  }

  super.fromMap(map);

  this.center = BMFCoordinate.coordinate().fromMap(map['center']);
  this.radius = map['radius'];
  this.width = map['width'];
  this.strokeColor = ColorUtil.hexToColor(map['strokeColor']);
  this.fillColor = ColorUtil.hexToColor(map['fillColor']);

  int lineType = map['lineDashType'] as int;
  if (null != lineType &&
      lineType >= 0 &&
      lineType < BMFLineDashType.values.length) {
    this.lineDashType = BMFLineDashType.values[lineType];
  }
}