camera$2 method

MLNMapCamera camera$2(
  1. MLNMapCamera camera$3, {
  2. required MLNShape fittingShape,
  3. required UIEdgeInsets edgePadding,
})

Returns the camera that best fits the given shape with some additional padding on each side, matching an existing camera as much as possible.

@param camera The camera that the return camera should adhere to. All values on this camera will be manipulated except for pitch and direction. @param shape The shape to fit to the receiver’s viewport. @param insets The minimum padding (in screen points) that would be visible around the returned camera object if it were set as the receiver’s camera. @return A camera object centered on the shape's center with zoom level as high (close to the ground) as possible while still including the entire shape. The initial camera's pitch and direction will be honored.

Note: The behavior of this method is undefined if called in response to UIApplicationWillTerminateNotification; you may receive a nil return value depending on the order of notification delivery.

Implementation

MLNMapCamera camera$2(MLNMapCamera camera$3, {required MLNShape fittingShape,required UIEdgeInsets edgePadding}) {
  final _ret = _objc_msgSend_53bjzp(this.ref.pointer, _sel_camera_fittingShape_edgePadding_, camera$3.ref.pointer, fittingShape.ref.pointer, edgePadding);
  return MLNMapCamera.castFromPointer(_ret, retain: true, release: true);
}