updateCenterOffset method

Future<bool> updateCenterOffset (
  1. BMFPoint centerOffset
)

更新marker centerOffset信息

Implementation

Future<bool> updateCenterOffset(BMFPoint centerOffset) async {
  if (null == centerOffset) {
    return false;
  }

  this.centerOffset = centerOffset;

  return await BMFMapDispatcherFactory.instance
      .getMarkerDispatcher()
      .updateMarkerMember(this.getMethodChannel(), {
    'id': this.getId(),
    'member': 'centerOffset',
    'value': centerOffset.toMap(),
  });
}