setVisibleMapRectWithPaddingHandler method
- {@required BMFCoordinateBounds visibleMapBounds,
- @required EdgeInsets insets,
- @required bool animated}
设置显示在指定相对于MapView的padding中的地图地理范围
BMFCoordinateBounds
visibleMapBounds 要设定的地图范围(东北,西南)角坐标
EdgeInsets
insets 指定的四周边界大小
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);
}