setVisibleMapRectWithPaddingHandler method

Future<bool> setVisibleMapRectWithPaddingHandler (
  1. {@required BMFCoordinateBounds visibleMapBounds,
  2. @required EdgeInsets insets,
  3. @required bool animated}
)

设置显示在指定相对于MapView的padding中的地图地理范围

BMFCoordinateBoundsvisibleMapBounds 要设定的地图范围(东北,西南)角坐标

EdgeInsetsinsets 指定的四周边界大小

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

bool 成功返回true 失败false

Implementation

Future<bool> setVisibleMapRectWithPaddingHandler(
    {@required BMFCoordinateBounds visibleMapBounds,
    @required EdgeInsets insets,
    @required bool animated}) async {
  return await BMFMapDispatcherFactory.instance.mapStatusDispatcher
      .setVisibleMapRectWithPadding(
          _mapChannel, visibleMapBounds, insets, animated);
}