setPerspective method

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

Set the map view perspective in follow position mode.

Parameters

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

Throws

  • An exception if it fails.

Implementation

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