setCenterCoordinate method

Future<bool> setCenterCoordinate (
  1. BMFCoordinate coordinate,
  2. bool animated,
  3. {int animateDurationMs}
)

设定地图中心点坐标

BMFCoordinate coordinate 要设定的地图中心点坐标,用经纬度表示

animated 是否采用动画效果(ios 独有)

animateDurationMs 动画更新时间(android 独有)

bool 成功返回true 失败false

Implementation

Future<bool> setCenterCoordinate(BMFCoordinate coordinate, bool animated,
    {int animateDurationMs}) async {
  return await BMFMapDispatcherFactory.instance
      .getMapStateDispatcher()
      .setCenterCoordinateDispatch(_mapChannel, coordinate, animated,
          animateDurationMs: animateDurationMs);
}