zoomToSpan abstract method

Future<void> zoomToSpan(
  1. List<LatLng> bounds, {
  2. EdgeInsets padding = const EdgeInsets.all(50),
  3. bool animated = true,
})

将指定的经纬度列表(包括但不限于marker, polyline, polygon等)调整至同一屏幕中显示

bounds边界点形成的边界, padding地图内边距

Implementation

Future<void> zoomToSpan(
  List<LatLng> bounds, {
  EdgeInsets padding = const EdgeInsets.all(50),
  bool animated = true,
});