setCameraViewFitMode method

Future<void> setCameraViewFitMode(
  1. MPCameraViewFitMode mpCameraViewFitMode
)

Set the MPCameraViewFitMode of the camera, when displaying route elements on the map.

The camera may be aligned to north, aligned with the first step, or aligned from start point to end point.

Implementation

Future<void> setCameraViewFitMode(MPCameraViewFitMode mpCameraViewFitMode) =>
    DirectionsRendererPlatform.instance
        .setCameraViewFitMode(mpCameraViewFitMode);