zoomToBoundingBox method

Future<void> zoomToBoundingBox(
  1. BoundingBox box, {
  2. int paddinInPixel = 0,
})
inherited

Implementation

Future<void> zoomToBoundingBox(
  BoundingBox box, {
  int paddinInPixel = 0,
}) async {
  await interop
      .flyToBounds(
        mapIdMixin.toJS,
        box.toBoundsJS(),
        paddinInPixel.toJS,
      )
      .toDart;
}