setZoomBy method

Future<bool> setZoomBy (
  1. double amount,
  2. {int animateDurationMs}
)

根据给定增量缩放地图级别(Android独有)

amount 地图缩放级别增量

animateDurationMs 动画更新时间

bool 成功返回true 失败false

Implementation

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