setMapViewPerspective method

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

Set the map view perspective.

Changes the projection used to render the 3D scene onto the 2D screen. Different perspectives affect how distances and angles appear, which can be useful for specific visualization needs. Optionally animate the perspective change.

Parameters

  • perspective: (MapViewPerspective) The perspective mode to use.
  • animation: (GemAnimation?) Optional animation for the perspective change.

See also:

Implementation

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