setMapViewPerspective method

void setMapViewPerspective(
  1. MapViewPerspective perspective, {
  2. GemAnimation? animation,
})

Set the map view perspective.

Parameters

  • IN perspective The map perspective.
  • IN animation The operation animation type. By default it is AnimationType.none.

Throws

  • An exception if it fails

Implementation

void setMapViewPerspective(
  final MapViewPerspective perspective, {
  final GemAnimation? animation,
}) {
  objectMethod(
    _pointerId,
    'MapViewPreferences',
    'setMapViewPerspective',
    args: <String, Object>{
      'perspective': perspective.id,
      if (animation != null) 'animation': animation,
    },
  );
}