setViewAngle method

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

Set the camera's pitch angle in degrees.

Parameters

  • viewAngle: The view angle in degrees (0..90).
  • animated: True to animate the change, false otherwise.

See also:

  • mapAngle - The map's rotation angle.
  • tiltAngle - The tilt angle complementary to view angle.
  • viewAngle getter - Get the current view angle.

Implementation

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