CameraFit.coordinates constructor

const CameraFit.coordinates({
  1. required List<LatLng> coordinates,
  2. EdgeInsets padding,
  3. double? maxZoom,
  4. double minZoom,
  5. bool forceIntegerZoomLevel,
})

Fits the camera to the coordinates, as closely as possible

For information about available options, see the documentation on the appropriate properties.

Allows for more fine grained boundaries when the camera is rotated. See https://github.com/fleaflet/flutter_map/pull/1549 for more information.

inside is not supported due to lack of implementation.

Implementation

const factory CameraFit.coordinates({
  required List<LatLng> coordinates,
  EdgeInsets padding,
  double? maxZoom,
  double minZoom,
  bool forceIntegerZoomLevel,
}) = FitCoordinates._;