BMFMarker.fromMap constructor

BMFMarker.fromMap(
  1. Map map
)

map => BMFMarker

Implementation

BMFMarker.fromMap(Map map)
    : assert(map['position'] != null),
      assert(map['icon'] != null),
      super.fromMap(map) {
  position =
      map['position'] == null ? null : BMFCoordinate.fromMap(map['position']);
  title = map['title'];
  subtitle = map["subtitle"];
  isLockedToScreen = map['isLockedToScreen'] as bool;
  screenPointToLock = map['screenPointToLock'] == null
      ? null
      : BMFPoint.fromMap(map['screenPointToLock']);
  identifier = map['identifier'];
  icon = map['icon'];
  centerOffset = map['centerOffset'] == null
      ? null
      : BMFPoint.fromMap(map['centerOffset']);
  enabled3D = map['enabled3D'];
  enabled = map['enabled'];
  draggable = map['draggable'];
  selected = map['selected'];
  canShowCallout = map['canShowCallout'];
  hidePaopaoWhenSingleTapOnMap = map['hidePaopaoWhenSingleTapOnMap'] as bool;
  hidePaopaoWhenDoubleTapOnMap = map['hidePaopaoWhenDoubleTapOnMap'] as bool;
  hidePaopaoWhenTwoFingersTapOnMap =
      map['hidePaopaoWhenTwoFingersTapOnMap'] as bool;
  hidePaopaoWhenSelectOthers = map['hidePaopaoWhenSelectOthers'] as bool;
  hidePaopaoWhenDrag = map['hidePaopaoWhenDrag'] as bool;
  hidePaopaoWhenDragOthers = map['hidePaopaoWhenDragOthers'] as bool;
  displayPriority = map['displayPriority'] as int;
  scaleX = map['scaleX'];
  scaleY = map['scaleY'];
  alpha = map['alpha'];
  isPerspective = map['isPerspective'];
}