setScrollBy method

Future<bool> setScrollBy (
  1. int xPixel,
  2. int yPixel,
  3. {int animateDurationMs}
)

按像素移动地图中心点

xPixel 水平方向移动像素数

yPixel 垂直方向移动像素数

animateDurationMs 动画更新时间

bool 成功返回true 失败false

Implementation

Future<bool> setScrollBy(int xPixel, int yPixel,
    {int animateDurationMs}) async {
  return await BMFMapDispatcherFactory.instance
      .getMapStateDispatcher()
      .setScrollByDispatch(_mapChannel, xPixel, yPixel,
          animateDurationMs: animateDurationMs);
}