BMFUserLocationDisplayParam.fromMap constructor
- Map map
map => BMFUserlocationDisplayParam
Implementation
BMFUserLocationDisplayParam.fromMap(Map map)
: assert(map != null,
'Construct a BMFUserlocationDisplayParam,The parameter map cannot be null') {
locationViewOffsetX = map['locationViewOffsetX'];
locationViewOffsetY = map['locationViewOffsetY'];
userTrackingMode =
BMFUserTrackingMode.values[map['userTrackingMode'] as int];
enableDirection = map['enableDirection'] as bool;
isAccuracyCircleShow = map['isAccuracyCircleShow'] as bool;
accuracyCircleFillColor =
ColorUtil.hexToColor(map['accuracyCircleFillColor']);
accuracyCircleStrokeColor =
ColorUtil.hexToColor(map['accuracyCircleStrokeColor']);
isRotateAngleValid = map['isRotateAngleValid'] as bool;
locationViewImage = map['locationViewImage'];
canShowCallOut = map['canShowCallOut'] as bool;
locationViewHierarchy =
BMFLocationViewHierarchy.values[map['locationViewHierarchy'] as int];
}