getCurrentViewpoint method

Viewpoint? getCurrentViewpoint(
  1. {required 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({required ViewpointType viewpointType}) {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeoView_getCurrentViewpoint(
        _handle, viewpointType.coreValue, errorHandler);
  });
  return Viewpoint._fromHandle(objectHandle);
}