cameraThatFitsShape method
- MLNShape shape, {
- required double direction$1,
- required UIEdgeInsets edgePadding,
Returns the camera that best fits the given shape with some additional padding on each side while looking in the specified direction.
@param shape The shape to fit to the receiver’s viewport. @param direction The direction of the viewport, measured in degrees clockwise from true north. @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 camera object uses the current pitch.
Note: The behavior of this method is undefined if called in response to
UIApplicationWillTerminateNotification; you may receive anilreturn value depending on the order of notification delivery.
Implementation
MLNMapCamera cameraThatFitsShape(MLNShape shape, {required double direction$1,required UIEdgeInsets edgePadding}) {
final _ret = _objc_msgSend_ebhzse(this.ref.pointer, _sel_cameraThatFitsShape_direction_edgePadding_, shape.ref.pointer, direction$1, edgePadding);
return MLNMapCamera.castFromPointer(_ret, retain: true, release: true);
}