setNewLatLngZoom method

Future<bool> setNewLatLngZoom (
  1. {@required BMFCoordinate coordinate,
  2. @required double zoom,
  3. int animateDurationMs}
)

设置地图中心点以及缩放级别(IOS不支持该接口)

BMFCoordinatecoordinate 要设定的地图中心点坐标,用经纬度表示 zoom 缩放级别

animateDurationMs 动画时间

bool 成功返回true 失败false

Implementation

Future<bool> setNewLatLngZoom(
    {@required BMFCoordinate coordinate,
    @required double zoom,
    int animateDurationMs}) async {
  return await BMFMapDispatcherFactory.instance.mapStatusDispatcher
      .setNewLatLngZoomDispatcher(_mapChannel,
          coordinate: coordinate,
          zoom: zoom,
          animateDurationMs: animateDurationMs);
}