setVisibleMapBounds method

Future<bool> setVisibleMapBounds (
  1. BMFCoordinateBounds visibleMapBounds,
  2. bool animated
)

设置显示在屏幕中的地图地理范围

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

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

bool 成功返回true 失败false

Implementation

Future<bool> setVisibleMapBounds(
    BMFCoordinateBounds visibleMapBounds, bool animated) async {
  return await BMFMapDispatcherFactory.instance.mapStatusDispatcher
      .setVisibleMapBounds(_mapChannel, visibleMapBounds, animated);
}