setCameraBounds method

Future setCameraBounds({
  1. required double west,
  2. required double north,
  3. required double south,
  4. required double east,
  5. required int padding,
})

Pans and zooms the map to contain its visible area within the specified geographical bounds.

Also consider using animateCamera or moveCamera, which allow you to set camera bounds (with different padding values per side) as well as other camera properties.

Implementation

Future setCameraBounds({
  required double west,
  required double north,
  required double south,
  required double east,
  required int padding,
}) async {
  return _vietmapGLPlatform.setCameraBounds(
    west: west,
    north: north,
    south: south,
    east: east,
    padding: padding,
  );
}