zoomToBoundingBox method

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

zoomToBoundingBox

this method used to change zoom level to show specific region, get box and paddinInPixel as parameter

box : (BoundingBox) the region that the map will move to and adjust the zoom level to be visible

paddinInPixel : (int) padding that will be used to show specific region

Implementation

Future<void> zoomToBoundingBox(
  BoundingBox box, {
  int paddinInPixel = 0,
}) async {
  await osmBaseController.zoomToBoundingBox(
    box,
    paddinInPixel: paddinInPixel,
  );
}