cameraForGeometry method

Future<CameraOptions> cameraForGeometry(
  1. Map<String?, Object?> geometry,
  2. MbxEdgeInsets padding,
  3. double? bearing,
  4. double? pitch,
)

Returns camera options that fit the given GeoJSON geometry.

Implementation

Future<CameraOptions> cameraForGeometry(
  Map<String?, Object?> geometry,
  MbxEdgeInsets padding,
  double? bearing,
  double? pitch,
) => _impl.cameraForGeometry(geometry, padding, bearing, pitch);