setNewLatLngZoom method
- {@required BMFCoordinate coordinate,
- @required double zoom,
- int animateDurationMs}
设置地图中心点以及缩放级别(IOS不支持该接口)
BMFCoordinate
coordinate 要设定的地图中心点坐标,用经纬度表示
zoom 缩放级别
animateDurationMs 动画时间
bool 成功返回true 失败false
Implementation
Future<bool> setNewLatLngZoom(
{@required BMFCoordinate coordinate,
@required double zoom,
int animateDurationMs}) async {
return await BMFMapDispatcherFactory.instance.mapStatusDispatcher
.setNewLatLngZoomDispatcher(_mapChannel,
coordinate: coordinate,
zoom: zoom,
animateDurationMs: animateDurationMs);
}