setZoomTo method

Future<bool> setZoomTo (
  1. double zoom,
  2. {int animateDurationMs}
)

设置地图缩放级别(Android独有)

zoom 设置地图缩放级别

animateDurationMs 动画更新时间

bool 成功返回true 失败false

Implementation

Future<bool> setZoomTo(double zoom, {int animateDurationMs}) async {
  return await BMFMapDispatcherFactory.instance.mapStatusDispatcher
      .setZoomTo(_mapChannel, zoom, animateDurationMs: animateDurationMs);
}