setViewAngle method

void setViewAngle(
  1. double viewAngle, {
  2. bool animated = false,
})

Set the camera pitch angle during follow position mode

Adjusts the vertical tilt of the camera. A value of 0 provides a direct top-down view, while 90 provides a horizontal view at ground level. Optionally animate the transition.

Parameters

  • viewAngle: The desired camera pitch angle in degrees (range: 0-90, where 0 is top-down)
  • animated: If true, animate the angle change. If false, change instantly. Default: false

Implementation

void setViewAngle(final double viewAngle, {final bool animated = false}) {
  objectMethod(
    pointerId,
    'FollowPositionPreferences',
    'setViewAngle',
    args: <String, Object>{'value': viewAngle, 'animated': animated},
    dependencyId: _mapPointerId,
  );
}