getCurrentViewpoint method

Viewpoint? getCurrentViewpoint(
  1. ViewpointType viewpointType
)

Retrieves the current Viewpoint of the GeoViewController.

This takes into account the attribution bar if it is visible. See GeoViewController.isAttributionTextVisible.

Parameters:

Return Value: A Viewpoint.

Implementation

Viewpoint? getCurrentViewpoint(
  ViewpointType viewpointType,
) {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeoView_getCurrentViewpoint(
      _handle,
      viewpointType.coreValue,
      errorHandler,
    );
  });
  return Viewpoint._fromHandle(
    objectHandle,
  );
}